May 19 2008

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

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.

Written By:

PG

Ann Smarty | @seosmarty

Ann Smarty is the Director of Media at Search & Social where she serves as the Editor of Search Engine Journal. Ann's expertise in blogging and tools serve as a base for her writing, tutorials and her guest blogging project, MyGuestBlog.

More Posts By Ann Smarty

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 text is meant to be an alternative information source for…
  • crymealake
    I thought readers would be interested in an application called Alt&Title that applies missing alt and title attributes to applicable HTML tags. I have used it on hundreds of web pages and it has saved me many hours of work.

    Give it a go. I hope you find it as useful as I have!

    Here is the web page promoting it...

    http://www.flysoftware.com/products/altandtitle...
  • Benito Aramando
    @Monturi Crap:

    Both attributes serve different purposes, so both will "last". Alt is for when the *image* cannot be seen; title is additional descriptive or advisory information (for any element). Neither will be deprecated.
  • I wonder... At the end which atribute will last?
    The alt or title.
    Seems like title is becoming an substitute for the alt element.
    It's possible that at the next HTML revision to say that ALT is deprecated?
  • Thanks for helpful tips, but alt tag show as a pop text in IE only not in other
  • hmh
    @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:
  • 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.
  • Chris G - Your right - except for when it comes to ‘img’ tags nested in an ‘a’ tag.

    <img alt="Chris G" />

    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.
  • 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? @ | , . \ ?
  • Can You tell me maximum length of alt text and image title tag.
  • @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.
  • @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.
  • 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.
    ,.?
  • 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? @ | , . \ ?
  • 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.
blog comments powered by Disqus
Newsletter Icon
Twitter Icon Facebook Icon RSS Icon
Search Marketing Summit
online invoicing SEO Directory Journal discount printing MailChimp Email Marketing Text Link Brokers Best of the Web inLinks

Authors