Quote:
Originally Posted by chartwise
One example is the <ALT> for tooltips in IE do not work in Firefox.
|
And it might be hard for you to believe but what Firefox does is actually correct and IE is wrong (as in most cases) because the
alt attribute is
not intended to display a tooltip, it's made to show alternative text that clearly explains the content of the image in case images can't be displayed for any reason (device not supporting images, etc.).
If you want a tooltip you need to use the
title attribute as
that's exactly made to give an element (any element) a title which will usually be displayed as a tooltip. And
that's the correct way to use it.
But be aware: the
alt attribute for images is still mandatory, you can't just replace
alt with
title. You can leave the value for
alt empty if there's no need for a description but the attribute itself is always mandatory.