WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: title attribute of anchor tag

for

From: Paul Bohman
Date: Feb 19, 2004 9:05AM


If you are swapping images, wouldn't you want to provide the extra info
in the alt text, rather than the title? (or are you swapping images
somewhere else on the page, and not at the link itself? e.g. is your
link really text, or is it an image?)



Lee, Samson (NIH/NIDCR) wrote:
> I have an anchor tag that has a javascript function that swaps a particular
> image when it's mouse-overed to provide extra information. For the 508
> compliancy, I added the equivalent info in its title attribute. I think this
> satisfies the requirement but wanted to make sure. Here's the code:
>
> <a onMouseover="swapImage('defaultImageID','','extraInfoImage.gif',1)"
> onMouseout=swapImgRestore()
> href="page.htm" title="extra info about the link" >Some Link</a>
>
> When I test this, JAWS reads the value of the title attribute ("extra info
> about the link"), but Home Page Reader reads the link name ("Some link"). Is
> this a right way to do it?


--
Paul Ryan Bohman
Web Accessibility Specialist/Project Coordinator
WebAIM (Web Accessibility in Mind)
www.webaim.org
Center for Persons with Disabilities
www.cpd.usu.edu
Utah State University
www.usu.edu



----
To subscribe, unsubscribe, suspend, or view list archives,
visit http://www.webaim.org/discussion/