Possible Duplicate:
Also use alt tag as title on images
Alt text does not produce tooltips on Chrome (and maybe other standard compliant browsers).
The alt attribute specifies alternate text that is rendered when the image cannot be displayed (see below for information on how to specify alternate text ). User agents must render alternate text when they cannot support images, they cannot support a certain image type or when they are configured not to display images. (HTML 4.01 Spec, 13.2)
The standard compliant browser will display only the image, or when that is not possible, only the alt text.
I propose using:
<img title="This is a tooltip." />
Instead of, or in addition to:
<img alt="This is NOT a tooltip." />
EDIT: I am not sure, but I don't think alt
is valid HTML5.
References
http://www.456bereastreet.com/archive/200604/alt_text_is_an_alternative_not_a_tooltip/
http://www.paciellogroup.com/blog/2011/04/html5-accessibility-chops-the-alt-decision/