View Full Version : Differences between Class and ID?

04-13-2006, 08:12 PM
What is the difference in using the class and ID attribute?, besides the following:

ID overrules Class
And class can be used on as many elements and ID only on one element.

04-13-2006, 08:17 PM
That spells it out pretty darn clearly! What makes you think there's more to it than that? :)

04-13-2006, 09:13 PM
I too have wondered about this and its not easy finding something more than what you had in your post. Here's a link to a more spelled out definition.


04-13-2006, 10:32 PM
An id identifies a specific object.

A class identifies a group of objects that have something in common.