
Untitled
By: a guest on
Aug 8th, 2012 | syntax:
None | size: 0.66 KB | hits: 5 | expires: Never
In form the class attribute is identical to the id tag. Just stick it into any opening tag and name it so that you can identify that element, or the group of elements that you add the class attribute to.
The general form of usage of the class attribute is:
<x class="name">...</x>
Where x can take on the place of any tag.
For Example:
<p class="bacon">Bacon ipsum dolor sit amet ground round rump ribeye, short ribs sirloin pork belly hamburger meatball meatloaf shoulder andouille.</p>
<p class="bacon">Tail pork loin jerky, ribeye sausage short ribs ball tip.</p>
<p class="bacon"> Pancetta sausage pork chop, venison chuck ground round ribeye sirloin hamburger.</p>