Re: Class and ID

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 UTC