PDA

View Full Version : Facing Problem about alt tag in firefox


Sandclock
02-28-2008, 11:16 AM
Hi,

When I open an image in explorer image alt tag is working properly, but not working ok in firefox. then what do I do?

domedia
02-28-2008, 01:06 PM
Hi sandclock, welcome to the forums!

1. What do you mean by 'alt tag working properly'? There is no alt tag per-se. It's an image attribute and is meant as a text alternative when the device/reader cannot display/see images. To test this in Firefox, turn off images and see if the alt attribute value is displaying instead.

2. If you mean the tooltip box that appears when you mouse-over the image in IE, then this is because IE will display the alt attribute in a tooltip if the title attribute is not present. Firefox does correct in not doing this. To have a crossbrowser tooltip display, use the IMG tag like this:
<img src="car.jpg" alt="Photo of the Mitsubishi Eclipse" title="This text will appear in the tooltip">