W3C home > Mailing lists > Public > www-style@w3.org > May 1998

Re: Class and ID

From: Chris Lilley <chris@w3.org>
Date: Wed, 13 May 1998 01:41:08 +0200
Message-ID: <3558DE14.211B0523@w3.org>
To: Todd Fahrner <todd@lowbrow.com>
CC: (wrong string) öldebrand" <chimbis@bahnhof.se>, www-style@w3.org
Todd Fahrner wrote:
> 
> Thus spake Carl Johan Berglund:
> 
> > I don't see a case when you can use an id and can not use a class, though.
> 
> This seems to be the main point of confusion. Why not just come up with a
> unique classname and use it only once?... 

You can link to an id, using a client-side specialiser:

http://site/foo/bar.html#baz

links to the element with ID=baz. You can't do that with class because
(until XLink and XPointer are more widely deployed) you can't have
multi-head and multi-tail links.

Class and id are not the same, although clearly there are similarities.

--
Chris
Received on Tuesday, 12 May 1998 19:42:24 GMT

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