homepage Welcome to WebmasterWorld Guest from 54.166.66.204
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / Accessibility and Usability
Forum Library, Charter, Moderators: ergophobe

Accessibility and Usability Forum

    
Image/Link Attributes -- TITLE= vs ALT=
One or the orther, or both?
spinnercee




msg:3150297
 4:56 pm on Nov 8, 2006 (gmt 0)

Just wondering: when you have an A HREF= tag that contains an IMG SRC= tag, is it a good idea to include both attributes? -- some browser versions support one or the other, and some support both.

From a technical standpoint, I assume the HREF TITLE attribute is supposed to be bound to the link destination, while the IMG ALT attribute is to describe the image itself, but since we are looking to provide accurate context, it's difficult sometimes.

Do search engine bots treat the attributes differently? What happens when both are identical? Should they be different?

 

Setek




msg:3154804
 4:33 am on Nov 13, 2006 (gmt 0)

From an accessible standpoint rather than an SEO standpoint, this is how it should work:

An anchor's title is to describe where the anchor goes, displayable as a tooltip when hovering over it.

An image's title is to describe what the image is about, displayable as a tooltip when hovering over it.

An image's alt is to describe the image in such a way that it can be conveyed without seeing the picture itself, displayable in Lynx (text-only browser) or a screen-reader.

Because of that, I would include all three (albeit they may have slightly differing descriptions.)

As for the SEO, I'm not altogether sure, but I believe Google checks an anchor's title, as well as an image's title and alt attribute values :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Accessibility and Usability
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved