...

View Full Version : IE & Firefox design



chartwise
04-03-2008, 12:11 PM
I have noticed that certain HTML tags that work in IE do not Firefox as they use a different code.

Does anyone know of a website that lists how to code for both browsers when the HTML tags are different.

One example is the <ALT> for tooltips in IE do not work in Firefox.

Many thanks in advance

abduraooft
04-03-2008, 12:37 PM
alt is not a tag, it's just an attribute of img, to display alternate text in the absence of an image.
Some of the problems are listed at http://www.quirksmode.org/

VIPStephan
04-03-2008, 01:29 PM
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.

chartwise
04-03-2008, 05:37 PM
alt is not a tag, it's just an attribute of img, to display alternate text in the absence of an image.
Some of the problems are listed at http://www.quirksmode.org/

MAny Thanks

chartwise
04-03-2008, 05:37 PM
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.
Many Thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum