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
Message-ID: <C902C0F80A54A143AEEAB9893B758DB001C4B6@RICHARDSONSRV.PTSTEAMS.COM>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:25 GMT