By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,447 Members | 1,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,447 IT Pros & Developers. It's quick & easy.

HTML image alternate tag is not displaying in FF

ak1dnar
Expert 100+
P: 1,584
Hi, need a favor on this HTML element.
I am using this tag for for my web Application to print some buttons along with some products.
[HTML]<a href="javascript:get_id(1001)">
<img width="21" height="22" border="0" alt="Add Inquries" src="images_store/b_iqn.jpg"/>
</a>[/HTML]

problem is the alternate message is displaying in IE but not in FF.
i there any way to display this alt in FF, and what is the reason for Not displaying it in FF.
Mar 14 '07 #1
Share this Question
Share on Google+
2 Replies


P: 48
Try adding the title attribute too with the same text. Firefox follows the specifications and only uses the alt when an image cannot be displayed. IE will use the title attribute as the "tool tip" before using the alt attribute.

[HTML]<a href="javascript:get_id(1001)">
<img width="21" height="22" border="0" alt="Add Inquries" title="Add Inquries" src="images_store/b_iqn.jpg"/>
</a>[/HTML]
Mar 14 '07 #2

ak1dnar
Expert 100+
P: 1,584
Try adding the title attribute too with the same text. Firefox follows the specifications and only uses the alt when an image cannot be displayed. IE will use the title attribute as the "tool tip" before using the alt attribute.

[HTML]<a href="javascript:get_id(1001)">
<img width="21" height="22" border="0" alt="Add Inquries" title="Add Inquries" src="images_store/b_iqn.jpg"/>
</a>[/HTML]
Thanks.Its working. ;)
Mar 15 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.