W3C home > Mailing lists > Public > www-style@w3.org > October 1996

IDs vs. Classes

From: Galarneau, Neil <ngalarneau@concord6.powersoft.com>
Date: Mon, 07 Oct 96 16:50:00 PDT
To: "'www-style'" <www-style@w3.org>
Message-Id: <32599EF6@smtpgw.powersoft.com>

IDs and Classes seem almost identical to me.

In fact, it seems that IDs are just Classes that can only be used in the
body once.

Is that true?

Also, the spec explicitly states that a simple selector can have only
1 class (in section 1.4), but I could find no such limit on the number of
IDs per simple selector.

Is that a purposeful omission (and simple selectors can have multiple
IDs) or does the same limit apply to IDs (only 1 per simple selector)?


Received on Monday, 7 October 1996 17:23:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:41 UTC