modifiers:class and id modifiers
One of the most useful aspects of modifiers is adding class and id attributes to an HTML tag.
| Xilize markup | browser rendering |
|
p(#myID0). Here's a paragraph with the "id" attribute set. p(myClass). One with the "class" attribute set. p(myClass#myID1). This has a signature with modifiers for "class" and "id" attributes. |
Here's a paragraph with the "id" attribute set. One with the "class" attribute set. This has a signature with modifiers for "class" and "id" attributes. |
XHTML generated
<p id="myID0">Here's a paragraph with the "id" attribute set.</p>
<p class="myClass">One with the "class" attribute set.</p>
<p class="myClass" id="myID1">This has a signature with modifiers for "class"
and "id" attributes.</p>