
27-03-2008, 07:36 AM
|
 |
Novice Webmaster
|
|
Join Date: Apr 2004
Location: Ampang
Posts: 18
Rep Power: 0
|
|
What being said from the first reply is true. Id should be unique in per page, i.e can only be use once. Where as class can be use repetitively.
Some might not see the importance of this, as they tend to use id instead of class again and again.
As for me, I followed this rule strictly since I'm using jQuery, a javascript framework for my works. On events such as, click, submit, etc, jQuery heavily depending on id and classes.
I believe for those who work a lot with Javascript, to say the least, would see the importance in differentiating id and class.
__________________
""If you must break the law, do it to seize power: in all other cases observe it." - Julius Caesar
|