W3C home > Mailing lists > Public > w3c-wai-er-ig@w3.org > March 2004

Re: [check 7] ALT text can't be empty (null or all spaces) if image is used as an anchor

From: Chris Ridpath <chris.ridpath@utoronto.ca>
Date: Mon, 29 Mar 2004 16:35:03 -0500
Message-ID: <016d01c415d5$b21e15f0$b040968e@WILDDOG>
To: "WAI ER IG List" <w3c-wai-er-ig@w3.org>

When an IMG is used as an anchor, you've got to have a text equivalent. But
what's the best way to implement the text equivalent?

Within the anchor:
<a href="cats.html"><img src="cat.jpg" alt=""/>cats</a>

Alt text:
<a title="cats" href="cats.html"><img src="cat.jpg" alt="cats"/></a>

Title on anchor:
<a title="cats" href="cats.html"><img src="cat.jpg" alt=""/></a>

Title on IMG:
<a href="cats.html"><img src="cat.jpg" alt="" title="cats" /></a>

Using all 4:
<a title="cats" href="cats.html"><img src="cat.jpg" alt="cats" title="cats"
/>cats</a>

I tried this on Jaws 4.5 and it read the text fine no matter where it was.

When the text was on all 4 it only read the text twice.

I propose that there must be at least one place for the text. Doesn't matter
where and it can be on multiple places. Yes, it may be read more than once
if it occurs multiple times but it gives more flexability.

Chris
Received on Monday, 29 March 2004 16:35:13 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Thursday, 9 June 2005 12:10:42 GMT