...

View Full Version : Differences between Class and ID?



johnwhello
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.

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

jamessaharayoun
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.

http://webdesign.about.com/od/css/a/aa020899.htm

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum