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

Re: IDs vs. Classes

From: Bert Bos <bbos@mygale.inria.fr>
Date: Tue, 8 Oct 1996 13:59:38 +0200 (MET DST)
Message-Id: <199610081159.NAA12879@mygale.inria.fr>
To: "Galarneau, Neil" <ngalarneau@concord6.powersoft.com>
Cc: "'www-style'" <www-style@w3.org>
Neil Galarneau writes:
 [...]
 > 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)?

A `simple selector' is only part of a selector. It is perfectly OK to
write a selector with three simple selectors:

    DIV.abstract P.first EM.company {font-style: italic}

But the following is not:

*   DIV.abstract.keys {font-style: italic}

I agree that the text in 1.4 should be clearer.


Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/pub/WWW/People/Bos/                      INRIA/W3C
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 93 65 77 71                 06902 Sophia Antipolis Cedex, France
Received on Tuesday, 8 October 1996 07:59:50 GMT

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