Search Engine Optimization

Image Alt Text Vs. Image Title : What’s the Difference?

Ann Smarty

05/19/08

11 Comments

Most webmasters don’t see any difference between image alt text and title mostly keeping them the same. A great discussion over at Google Webmaster Groups provides an exhaustive information on the differences between an image Alt attribute and an image title and standard recommendations of how to use them.

Alt textAlt text is meant to be an alternative information source for those people who have chosen to disable images in their browsers and those user agents that are simply unable to “see” the images. It should describe what the image is about and get those visitors interested to see it.
Without an alt text an image will be displayed as an empty icon: without altIn Internet Explorer Alt text also pops up when you hover over an image. Last year Google officially confirmed that it mainly focuses on an alt text when trying to understand what an image is about.

Image title (and the element name speaks for itself) should provide additional information and follow the rules of the regular title: it should be relevant, short, catchy and concise (a title “offers advisory information about the element for which it is set“). In FireFox and Opera it pops up when you hover over an image:

Image title

So based on the above, we can discuss how to properly handle them:

  • the both tags are primarily meant for visitors (though alt text seems more important for crawlers) – so provide explicit information on an image to encourage them to view it or get them interested.
  • include your main keywords in both of them but keep them different. Keyword stuffing in Alt text and Title is still keyword stuffing, so keep them relevant and meaningful.

Another good point to take into consideration:

  • According to Aaron Wall, alt text is crucially important when used for a sitewide header banner.

11 Comments

  • claye says:

    We should also keep the disabled in mind while writing alt tags because text-to-speech browsers read the alt tag as a description of what the image is so that blind users understand what you are trying to communicate in an image.
    It’s useful when writing title tags to think of what the caption for that image would be.

  • log homer says:

    thanks for the tips, but i have one question: what about punctuation and special characters in alt. and title descriptions? can you use any of the following? @ | , . \ ?

  • Chris G. says:

    Let’s be clear – In IE, the alt attribute is used as a tool tip/pop up only if a title attribute is not used.
    When you use both an alt attribute and a title attribute, the title overrides the alt text and becomes the tool tip/pop up when the mouse is placed over an image.

    @Iog – I know you can use the following symbols, but I’m not sure about the others.
    ,.?

  • SEO Canada says:

    @Log
    I’ve used , and . before so I’m sure that ? is fine as well. But if your putting a @ or | in your Alt or Title tag then you should reread what this article was talking about as there not used in the english language in any way you would be describing the relevance of the image. And if your putting an email address in an image as spam protection then putting the address in the alt tag would negating trying to hide it from the spiders.

  • log homer says:

    @SEO Canada | You’re right | No One Talks Like This | Point Taken

    : )

    I appreciate the advice, I’ve got a lot of changes to make.

  • Can You tell me maximum length of alt text and image title tag.

  • thanks for the tips, but i have one question: what about punctuation and special characters in alt. and title descriptions? can you use any of the following? @ | , . \ ?

  • Josh B says:

    Chris G – Your right – except for when it comes to ‘img’ tags nested in an ‘a’ tag.

    <a href=”" title=”Click to send Chris an email”><img alt=”Chris G” /></a>

    In this case, IE would display ‘Chris G’ as the tool tip on the image, not ‘Click to send Chris an email’, which in my opinion is incorrect. IE should be using the text from the title attribute of the parent ‘a’ tag to populate the tooltip.

    Firefox works this way.

  • Rezo says:

    I agree with photos and other visually informative images — they need both alt and title attributes. But what about the technical images? Slices, separators, corners and plenty of other stuff which doesn’t need to be titled? IE pops up their alt, causing unwanted attention where it’s not needed. In fact, nobody needs them to have the alt attributes, but such images fail validation simply because they don’t have alt. It would be nice if IE stopped treating alt like titles, it would allow us to alt technical images too — just for the sake of validation.

  • hmh says:

    @Rezo
    “Technical images” should be left with an empty alt-attribute to let text-to-speech browsers know that this image is unimportant.
    Like this:

  • shubelal says:

    Thanks for helpful tips, but alt tag show as a pop text in IE only not in other

Leave a Reply