WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Title attributes on images and links

for

From: Dean Hamack
Date: Aug 5, 2009 12:15PM


On 8/5/09 10:33 AM, "Karl Groves" < <EMAIL REMOVED> > wrote:

> This isn't' an 'either-or' thing. I agree with you on the PDF thing.
> In such a case, you could forcibly set the 'Content-Disposition' header to
> be 'attachment', which will prompt the user with what to do with the file
> (i.e. whether or not to open it in Adobe Reader. Again, I have no info
> on what users' reactions would be to this approach, but may meet your
> needs.

How do you do this in practice? I'd never heard of this until now.

> Well, if you're using an icon, then the alt attribute would work just
> fine. Make sure the icon is within the link though:
> <a href="http://www.example.com">Go <img src="foo.gif" alt="Opens in a new
> window"></a>

I use background images for all icons, so that won't work. However, as
someone else pointed out, I can simply use a hidden span in the link and
accomplish the same thing.