The alt property is used to display a tooltip in the web borwser. If you set
the property to a string value it will automatically be displayed when the
mouse is over the image.
> The alt property is used to display a tooltip in the web borwser.
No, it's to supply textual content to be used in the case that the
image isn't displayed -- it's unavailable, the client has disabled
images, the client isn't a graphical browser, etc.[1]
> If you set the property to a string value it will automatically be
> displayed when the mouse is over the image.
Only in the operating-system-component-masquerading-as-a-browser.
Graphical browsers which do support tooltips use the title attribute.[2]
---
[1] 13.8 How to specify alternate text; HTML 4.01 Specification;
W3C Recommendation; 24 December 1999;
http://www.w3.org/TR/html401/struct/objects.html#h-13.8
[2] 7.4.3 The title attribute; ibid.;
http://www.w3.org/TR/html401/struct/global.html#h-7.4.3

Signature
Steve
A foolish consistency is the hobgoblin of little minds.
-Ralph Waldo Emerson