W3C home > Mailing lists > Public > public-html@w3.org > May 2007

Re: @role, @class, @id and copyright information

From: Dimitri Glazkov <dimitri.glazkov@gmail.com>
Date: Wed, 16 May 2007 11:02:32 -0500
Message-ID: <fb15ac210705160902x75c6521p65c1f0d23d29cb46@mail.gmail.com>
To: "Olivier GENDRIN" <olivier.gendrin@gmail.com>, "HTML WG" <public-html@w3.org>

The way I see it, class attribute values act as a foreign key in the
document, i.e. their definition and meaning are stored outside of the
document (with the exception of microformats, the storage is Web
developer's brain). On the other hand, id attribute acts as a primary
key, identifying a fragment of markup. If this is indeed the case, I
would advise against applying pre-defined semantics with the id
attribute, thus converting it into some sort of hybrid of foreign and
primary key.

The naming and placement of ids should not be constrained or regulated.

:DG<

On 5/16/07, Olivier GENDRIN <olivier.gendrin@gmail.com> wrote:
>
> I just realised that, if i wanted to indicate the copyright
> information of a page, i would probably use an id="copyright" instead
> of class="copyright" (or class="copy").
>
> It means that if we write into stone some @class value for semantic
> purpose, we should have the same list for the @id.
>
> And has anyone stats about the use of class="blue" or class="title" ?
> What if it's more widely used than copyright ?
>
> --
> Olivier G.
> http://www.lespacedunmatin.info/blog/
>
>
Received on Wednesday, 16 May 2007 16:02:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:44 UTC