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

Re: IDs vs. Classes

From: Chris Lilley <Chris.Lilley@sophia.inria.fr>
Date: Wed, 9 Oct 1996 16:29:31 +0200 (DST)
Message-Id: <9610091629.ZM5806@grommit.inria.fr>
To: gtn@ebt.com (Gavin Nicol), knoblock@worldnet.att.net, www-style@w3.org
Cc: papresco@calum.csclub.uwaterloo.ca, ngalarneau@concord6.powersoft.com
On Oct 8,  4:17pm, Gavin Nicol wrote:

> ]someone said]:

> >am I right to think
> >
> > <p class=copyright>text</p>
> >
> >is like saying
> >
> > <copyright>text</copyright>
>
> Quite correct. A point I've made for a *long* time...

With the sole exception that, of course, an HTML 2.0 | 3.2 browser can
do something vagely sensible with <p class=copyright> and <h2
class=chaptertitle> wheras it can do nothing much with <copyright> and
<chaptertitle> except pretent the tags weren't there.

It's a tradeoff; if you want a sprinkling of semantic hints and installed
base compatibility, use class in text/html. If you want rich semantic
markup and have no desire for widespread accessibility, use text/sgml
(or application/sgml as appropriate). W3C is working to facilitate both
approaches.

-- 
Chris Lilley, W3C                          [ http://www.w3.org/ ]
Graphics and Fonts Guy            The World Wide Web Consortium
http://www.w3.org/people/chris/              INRIA,  Projet W3C
chris@w3.org                       2004 Rt des Lucioles / BP 93
+33 93 65 79 87            06902 Sophia Antipolis Cedex, France
Received on Wednesday, 9 October 1996 10:30:30 GMT

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