Forum Moderators: open
As far as I know, IE is the only major browser that displays the alt-text in this way.
You can also switch off the tooltip, and remain valid, by specifying alt="". However, you should do this only if the image is purely decorative; i.e., your page would have essentially the same content without the image. (For example, a bullet image.)
Nick
Is there a <meta> that will allow me to use the alt as intended yet turn off the IE toolbar? This is what I use for the "imagetoolbar".
<meta http-equiv="imagetoolbar" content="no>
A related question. I'm working on another site with a similar issue. However, -- body {cursor: crosshair} -- is specified. In this case, I do want to allow the alt="xxx". But when the text comes up, it comes up with the arrow cursor -- and flickers back and forth between the two. How can I keep the crosshair and the text -- or will I have to switch to the arrow?
The alt attribute on an <img> tag is NOT supposed to pop up a tooltip, but does so on some older browsers.
Valid: <a href="/path/somefile.html" title="text about the link">some text here</a>
Valid: <img src="image.png" alt="short text here" height="100" width="100">
Valid: <a href="/path/somefile.html" title="text about the link"><img src="image.png" alt="short text here" height="100" width="100"></a>
Add alt="some text" to every <img > tag, the text reflecting what is in the dispayed image. On unimportant images, like spacer elements, a minimum of alt="" is fine. For bullet-point images, alt="*" is often used. Search engines do index the alt text. The alt attribute is a required element.
The alt text is there for browsers with image loading switched off, or where the image fails to load, or for non-visual browsers to read out loud or render in Braille.