Forum Moderators: mack
<a href="url" title="TITLE HERE"><img src="URL" alt="TITLE HERE" title="TITLE HERE"></a>
<a href="url" title="TITLE HERE"><img src="URL" alt="" title=""></a>
It seems that my assumption was wrong?
alt doesn't display in Firefox!
I think that's more design than fault. The alt can be useful to show a tip for example "homepage" immediately lets the user know that clicking the image will take them to the homepage.
But many sites just use "logo" or something similar. Firefox uses alt when an image is missing or fails to load, I think this fall under it's intended use more than the tool tip that IE displays.
Mack.
Another bonus for the alt tag for linked images is that when, for whatever reason, an image won't load, the alt tag text still displays so that your visitor still gets the information you want to convey. Such as - alt="Click here for more information!" or alt="Our ameoba at stage 2". So, if they can't view the image, they will still know what the image was about.
Offhand, I'm not familiar with the "title" tag, I assume it does the same job as the "alt" tag in relation to Search Engine Optimization.
IE kind of encouraged misuse of the alt tag by having it play double duty as a title tag as well... in web standards compliant browsers the alt text is not displayed as a tool tip when hovering over the image - this is the role the title tag plays.
The appear to be very similar but their purpose is fundamentally quite different... ideally, alt text should be used in a way that improves the accessibiliy of the website for people who do not load images or people who use screen readers - so if your image is just decorative and doesn't contribute to the content of the site then you may wish to leave your alt tag blank (alt=""). Title tags are nice to use as a sort of "caption" to perhaps give descriptive information about the image - information that wouldn't be relevant to the content of the site if the image failed to appear.
This is just my inderstanding of how they are supposed to work - I've done a bit of research and I still sometimes find it difficult to make the best use of alt tags. There's a lot of excellent articles out there about proper use of the alt tag to increase accessibility of your site.