Difference between Class and id in CSS:

September 5, 2007 at 5:41 am | In Uncategorized | Leave a Comment

Difference between Class and id in CSS:

  • Id is used for referring single element in a page,
    Class can be used to refer more than one element in a page.
  • Id is unique,
    Class is not unique.
  • Id is used for styling one single element,
    Class is used for styling many elements in the same manner.

No Comments Yet »

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.