Re: Styling by attribute-based association?

Laurens Holst <lholst@students.cs.uu.nl> wrote:

>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.

For this I would not credit XHTML2 as a "major design improvement" since
this only applies to the legacy <img> element, not to embedded/included
images in general.

The textual alternative to an image and other embedded/included external
resources can be coded as content and thus marked up since HTML4.

-- 
Spartanicus

Received on Friday, 28 October 2005 10:13:57 UTC