W3C home > Mailing lists > Public > www-style@w3.org > December 2003

ID's vs. classes

From: Scott Romack <sromack@PTSTEAMS.com>
Date: Wed, 17 Dec 2003 15:57:14 -0600
To: <www-style@w3.org>
I prefer to use classes for my CSS. This leaves ID's open for any
Javascript stuff or whatever.
Most everyone else seems to prefer to use ID's. I am aware that ID's
have higher specificity.
Is there any real advantage to either approach?
Received on Wednesday, 17 December 2003 16:56:29 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:10 UTC