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


From: Accessibility India
Date: Oct 31, 2011 9:45AM

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.