View Full Version : Images and alt coding
02-27-2010, 07:52 PM
I have designed an extensive site [www.chepstow-walkabout.co.uk] and have just found out to my horror that in Firefox, image text does not appear.
In IE when the mouse pointer hovers over the images on my tourpages, a small white box of text appears giving street directions. I believe in the coding it appears as
<img src="greenarrow.gif" alt="Walk ahead along the High Street">
Why does this not happen in Firefox?
02-27-2010, 08:04 PM
Have just tried using "title" instead of "alt" and it works in bith IE and Firefox. However, I do not fancy doing this for another 635 pages of code, each with at least four alts to change.
Now is this a problem with my Firefox installation and can i amend my browser to accept "alt"?
02-27-2010, 08:38 PM
That is because IE is incorrectly using the alt tag and I believe is the only browser that does that. The rest use the title attribute for the tooltip only. The alt tag is for the text that you want displayed if the image isn't loaded.
02-27-2010, 10:31 PM
If you want the title attribute, you should be using that alongside alt, not replacing alt with title. The alt tag is meant to be a descriptive element to describe the image only, and is necessary for people with text browsers, images disabled in their browser and screen readers.
03-05-2010, 09:17 PM
If you wish to change all of the alt tooltips to the title tooltips, then simply use Find and Replace. Type alt int the top, title in the bottom and click change all. This will be fine, as long as you do not have alt written anywhere on your page.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.