| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
|
|
#2 (permalink) |
|
Senior Member
Join Date: Dec 2006
Location: Switzerland
Posts: 276
|
You can, but don't think your html will validate following W3C standards. Not that Firefox uses "Title" instead of "alt", so its wise to have both in as your image attributes. There isn't really a use for an alt text in other tags as far as i'm concerned, as it is designed specifically as "alternate text" for objects that aren't text and which certain browsers / users can not comprehend without an explanation. As for Flash, use SWFObject, it allows to have a div with textual explanation of the flash content for those without flash. And it seems to be ok with Google and SEO. EDIT: I believe the alt attribute can also be used in the "a" tag when writing links. (at least I do sometimes) Last edited by bluesage : 07-05-2008 at 17:47. |
|
|
|
#3 (permalink) |
|
Moderator
Join Date: Jan 2005
Location: Brooklyn, NYC
Posts: 11,869
|
There is no alt tag. There are alt attributes, which are attached to <img /> and <input type="image" />. Find good advice in the beginners web design thread.
patrick o'neill web developer | blog | spam humor |
|
|
|
#4 (permalink) | |
|
trouble free and loverlee
Join Date: Mar 2003
Location: YooKay
Posts: 2,854
|
Quote:
Firstly, you need to forget about the tooltip effect of the title attribute (or alt attribute in the case of IE). It's best to primarily think of the alt and title attributes and their content purely in terms of the information they convey to the user. If the image content doesn't convey all that it should, then and only then, is is a fair idea to add a title attribute to expand upon the information conveyed in the image itself (or the alt attribute). The correct attribute to use would be the longdesc, but in practise, coders and usability bods seem to have settled on the title attribute as sufficient. For image links, the alt attribute should convey the same content of the image. If the link would benefit from additional info, then add a title attribute to the anchor, not the image. The title attribute should never replicate the content of the alt attribute. The alt attribute should replicate the information conveyed in the image itself (this covers both 'images on' and 'images off' users, sighted and unsighted users). By adding a title attribute which replicates that information again, you're simply adding bloat to the code without really benefiting the user. In terms of how screenreaders and other AT software interpret the various configurations of anchor text, anchor titles, alt attributes and img title text, a search over at Accessify Forum would be a good idea. It's a topic which crops up from time to time. |
|
|
|
|
#5 (permalink) |
|
Webdeveloper
Join Date: May 2008
Location: Sweden
Posts: 13
|
<a href="my-link.htm" title="This is my link description">Go here</a> <acronym title="Serach Engine Optimization">SEO</acronym> <img src="image.jpg" alt="This is my image" /> All is valid xHTML... Read at w3.org if you need to look it up. |
|
|
|
#6 (permalink) | |
|
Moderator
Join Date: Jan 2005
Location: Brooklyn, NYC
Posts: 11,869
|
Quote:
Find good advice in the beginners web design thread.
patrick o'neill web developer | blog | spam humor |
|
|
![]() |