I noticed alt tags do not work in firefox -- to show a tooltip when the mouse is over the image.
Is there another way to do this that works in firefox?
WillGibson
02-03-2005, 09:10 PM
title="blah"
works for most things
GB Joe
02-03-2005, 10:11 PM
Without wanting to sound like a fanatic (although I am a recent convert), I think FF actually does it right...
The alt text is meant to help with accessibility by displaying a suitable "alternative" to the image if it's not displayed for some reason. As an example, if you used an image for a button saying "NEXT" then it's probably sensible to set alt="NEXT".
The title should be used for the tool-tip. This is more along the lines of helpful instructions, so in this case you might go for title="Click to see the next whassname". Personally I like to use this for comedy whenever possible, but that's probably frowned upon by sticklers.
I think you'll find that if you include both then FF and IE will behave in the same way. IE just pounces on the alt text if there's no title, which is a bit of a shame really.
Hope this was helpful... somebody stop me if I've got it wrong! ;)
Joe.