- From: Jukka K. Korpela <jkorpela@cs.tut.fi>
- Date: Wed, 8 Feb 2006 08:25:16 +0200 (EET)
- To: www-validator@w3.org
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