W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2004

Re: HTML alt and title tag

From: Fred Bone <Fred.Bone@dial.pipex.com>
Date: Sun, 12 Dec 2004 15:57:22 -0000
To: html-tidy@w3.org
Message-ID: <41BC6A62.23991.398FBE9@localhost>

On 12 Dec 2004 at 5:05, Kenny Chamber said:

> I noticed that when inserting alt and title tags around an image tag, always
> the alt tag has priority on the title (link) tag when mouseover the image.
> Why? Normally the title tag is more important for the user than the alt tag.

Yes, and that's why it should be displayed.

> How can I overcome this situation?

Please provide sample HTML. Old versions of IE used to display ALT text 
instead of TITLE, but current ones seem to get it right.

Assuming, of course, that you have the HTML correct:
<img alt="alt text" title="title text" src="pics/034_31t.jpg">
Received on Sunday, 12 December 2004 15:58:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:55 UTC