WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: IMG with a caption?

for

From: Tim Beadle
Date: Mar 7, 2005 2:02AM



"webmaster29" < <EMAIL REMOVED> >
wrote on 05/03/2005 07:47:27:
> Thanks Joelle! Great article. As for the ALT, it also shows the short
> text for the sighted readers when the pointer is over an image. I
know
> it works on IE, but on Firefox ALT does not show anything.

That's correct. Firefox does the right thing with
ALT text - it's an alternative. Unfortunately, people expect FF to behave
like IE, which uses ALT text for tooltips and is wrong.
&nbsp;
> So I add TITLE. For example <img src="someimage.png"
ALT="some image
> short description" &nbsp;TITLE="some image short description">
Then the
> description appears both on IE and Firefox. I do not know if it is
right
> or wrong way to do it (any idea?), but at least the text appears on
both
> IE and Firefox.

Wrong, I'd say, but I'm a bit of a purist in this regard. Would this confuse
a screenreader, or lead to the text being read out twice? Either way, IE's
"ALT-text in tooltips" is wrong. Did I mention that already...?
:)

If you want tooltip text to appear in both IE and
FF, use the title attribute. This applies to any element that legally takes
the title attribute, not just IMG.

Regards,

Tim

Institute of Physics
Registered charity No. 293851
76 Portland Place, London, W1B 1NT, England

IOP Publishing Limited
Registered in England under Registration No 467514.
Registered Office: Dirac House, Temple Back, Bristol BS1 6BE England

This e-mail message has been checked for the presence of computer viruses.