W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2000

Re: alt tags - a moot point?

From: Kynn Bartlett <kynn@idyllmtn.com>
Date: Wed, 12 Jul 2000 20:49:46 -0700
Message-Id: <a04320427b592ec426161@[]>
To: "Benjamin J. Simpson" <bsimpson@arc.nasa.gov>, <w3c-wai-ig@w3.org>
At 5:16 PM -0700 7/12/00, Benjamin J. Simpson wrote:
>Q: What alt tag should a graphic link that represents text have? 
>(ie, home.gif - a gif that is the word 'home')
>A1: The alt tag text is the same as the graphical text. (alt="Home")
>A2: The alt tag provides alternative content. The text provides a 
>more detail about what the link points at.  (alt="Yahoo's home page")

I agree with (I think) you, Benjamin.

Here's how to do what's suggested above:

<a href="http://www.yahoo.com/" title="Yahoo's home page">
   <img src="home.gif" alt="Home" />

The title attribute should be used whenever you want to convey that
extra bit of human-readable information about what a link (of any
kind) is going to do.  The alt describes the _image_, the title
(on the a tag) describes the _link_.

This has the extra advantage of providing a tool tip for the link
on many browsers.

Kynn Bartlett <kynn@idyllmtn.com>
Received on Wednesday, 12 July 2000 23:57:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:35:57 UTC