4
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by rajarajan07
2

Depends what you're using them for. As a rule of thumb each 'id' can only be declared once, whereas you can have as many identical 'class' values as you want on a page. The id and class are used extensively as 'hooks' for css and javascript.

In CSS, 'ids' are denoted with a # symbol before the id value and classes with a . symbol. Javascript frameworks such as jQuery have also gone for this notation.

Votes + Comments
Very clear and straight to the point :)
beat me to it... again :P
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.