WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: alt text on img sources, and best software to inspect html code with a screen reader

for

From: Bryan Garaventa
Date: Oct 31, 2011 10:18AM


"Screen readers will recognize clickable elements when navigated through the
web page. The screen reader user will be confused if the clickable element
is not provided with the target."

True enough, however if you use onMouseUp instead of onClick, screen
readers will not recognize this.

----- Original Message -----
From: "Accessibility India" < <EMAIL REMOVED> >
To: "WebAIM Discussion List" < <EMAIL REMOVED> >
Sent: Monday, October 31, 2011 8:37 AM
Subject: Re: [WebAIM] alt text on img sources, and best software to inspect
html code with a screen reader


> On 10/31/11, Bryan Garaventa < <EMAIL REMOVED> > wrote:
>> Actually if you wanted to provide an image link to sighted users that has
>> no
>> value or relevance to screen reader users, you could hide it in the
>> following manner:
>>
>> <span class="link"><img src="whatever.jpg" alt="" ... /></span>
>>
>> Then use CSS to style the span like a link and make it clickable. Screen
>> readers will ignore the image since it has a null alt, keyboard users
>> won't
>> encounter it since it has no tabindex, and the span won't be recognized
>> by
>> ATs as an active element.
> Screen readers will recognize clickable elements when navigated
> through the web page. The screen reader user will be confused if the
> clickable element is not provided with the target.
>>
>> It's best to make certain that such functionality is totally useless to
>> AT
>> and keyboard users before doing it though, otherwise you would be
>> introducing equivalence issues.
>>
>