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

Re: Styling by attribute-based association?

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Fri, 28 Oct 2005 11:16:59 +0200
Message-ID: <4361EC8B.1080307@students.cs.uu.nl>
To: Matthew Raymond <mattraymond@earthlink.net>
Cc: www-style@w3.org

Matthew Raymond schreef:
>> Side note #1:
>>   There is a funny note in the XHTML 2.0 (list module, nl's):
>>   "Note that a navigation list always starts with a label element that defines
>> the label for the list."
>>   What this means: "Must start" or "May start" ?  What if it does not?
>    Labels should be required, because you might have tear-off menus in
> some environments. However, that doesn't mean a label _element_. It
> could just mean an attribute. In fact, it may be useful to have a one
> label in the parent menu and a slightly different one for the torn-off
> submenu.

An attribute instead of a label element is a bad idea.

Attributes can contain no markup, such as Ruby, abbreviations, 
directionality indications, etc. They also cannot be styled conveniently.

That is a major design improvement of XHTML2, and also the reason why 
e.g. the alternate text of images has moved out of the alt attribute 
into the elementís content.


Ushiko-san! Kimi wa doushite, Ushiko-san nan da!!
Received on Friday, 28 October 2005 09:14:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:21 UTC