Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 8th, 2012  |  syntax: None  |  size: 0.66 KB  |  hits: 5  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. 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.
  2.  
  3. The general form of usage of the class attribute is:
  4. <x class="name">...</x>
  5. Where x can take on the place of any tag.
  6.  
  7. For Example:
  8. <p class="bacon">Bacon ipsum dolor sit amet ground round rump ribeye, short ribs sirloin pork belly hamburger meatball meatloaf shoulder andouille.</p>
  9. <p class="bacon">Tail pork loin jerky, ribeye sausage short ribs ball tip.</p>
  10. <p class="bacon"> Pancetta sausage pork chop, venison chuck ground round ribeye sirloin hamburger.</p>