W3C home > Mailing lists > Public > www-validator@w3.org > February 2006

Re: [VE][127] Error Message Feedback

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Wed, 8 Feb 2006 08:25:16 +0200 (EET)
To: www-validator@w3.org
Message-ID: <Pine.GSO.4.63.0602080821300.25210@korppi.cs.tut.fi>

On Tue, 7 Feb 2006, Colin Newman wrote:

> <a href="Brahms_req.htm" class="link" title="More information"><img
> src="info.gif" border="0" width="20" height="20"></a>
> If I specify the alt attribute for the image tag, as you require, then the
> text supplied for the title attribute of the anchor tag (ie "More
> information") does not appear when the mouse pointer hovers over the link.

"We" don't require things; the validator simply reports mismatches between 
your document's markup and the formal definition (DTD) that the document 
purports to comply with. The _HTML specifications_ make the alt attribute 
required, even formally (in the DTD).

On the practical side, the way to overcome this somewhat inconvenient
behavior*) is to use a title="..." attribute in the <img> tag, in addition 
to the alt="..." attribute of course. Modern browsers use the title="..." 
attribute in the _innermost_ element for the tooltip text.

*) Browsers are using the alt="..." attribute for something that it should 
not be used.

Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Wednesday, 8 February 2006 06:25:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:47 UTC