$('code')
$('#myid')
$('.myclass')
$('*')
$('code, #myid, .myclass')
$('selector').addClass('highlight').animate({ marginLeft: 10}, 'fast');
<div id="myid">
. It is followed by a horizontal rule.This is a paragraph, which means it is wrapped in <p>
and </p>
. Those "p" tags in the previous sentence are formatted as <code>
.
<li>
) in an unordered list (<ul>
). class
of "myclass otherclass"<p class="myclass">
This is another paragraph. It has class="myclass" Otherwise, nothing special about it at all.
This is a paragraph, which means it is wrapped in <p>
and </p>
. Those "p" tags in the previous sentence are formatted as <code>.