The “Alt” Attribute

When discussing accessibility techniques in blogs, I mentioned the importance of using the “alt” attribute. Here I am going to define it further, show you the positive aspects of using “alt” and how to use it to its best advantage.. Although alt is used for other page elements, such as image map areas, I am concentrating on its use for images.

Definition of the alt attribute

The alt attribute is a method of providing a descriptive text alternative for images. Example:

<img src=”http://www.yourdomain.com/your-image.jpg” alt”this is the alt text” />

Reasons for using the alt attribute

  • To display a text equivalent for an image in browsers where images have been turned off.. Reasons:
    • To speed up page load time for users on slow dial-up connections.
    • To avoid viruses that can be spread through image files, where the user does not have adequate virus protection.
    • To save bandwidth when users are concerned about using up download limits.
    • To save download amounts if using a pay per download scheme (e.g. when connecting to internet via a mobile phone)
    • To aid browsing when using a handheld device e.g. PDA, mobile phone, electronic books, Blackberries.
  • Accessibility purposes for users with disabilities:
    • For those who use assistive technologies such as screen readers which convert text-to-speech, sound icons, or a braille output
    • For those with color blindness which precludes them from distinguishing detail in images.
    • For those using audio-based browser technologies
  • Search engine optimization:
    • Most search engines interpret the meaning of objects by analyzing their alt attribute. They cannot see images!
    • Use keywords in alt text to help with indexing and pagerank.

How to add alt text in blogs

In Blog Posts:

Blogger - In your “Create” post screen upload or point Blogger to your image location using the “Add Image” icon in either the visual or html post tabs. Once this is done look in the Edit HTML window and you will find an empty alt attribute which looks like this alt=”" . Add your text in between ” and ” e.g. alt=”this is the descriptive alt text”

Wordpress - add your image using the image icon in the new post visual tab. Add your “alt” text in the Image description box of the Insert/Add Image window.

Elsewhere in your blog:

If you are manually adding an image to your blog via widgets or straight html coding add the alt code to the image tag: For example:

<img src=”http://www.sueblimely.com/images/icons/ifollowblue.jpg ” alt=”You comment, I follow” /> will produce:

You comment, I follow

If you are using IE, hovering over the image will show this text. Another attribute, “title”, can be used for displaying image description and this does show up in Firefox.

Tips for the text in the “alt” attribute

  • Keep the text short - if too long it may break page layout where images are turned off.
  • Ensure the text is meaningful and adquately descriptive for accessiblity purposes or where graphics are not being displayed.
  • Include keywords for search engine purposes but still take account of the first two points above.
  • If the image is a text image, use the same text for the “alt” attribute - e.g for blog titles
  • Use CSS background images for bullets, lines or other decorative elements where descriptions are not necessary to make sense of the page. If you need to add them directly to your page you can leave the alt tag empty (alt=”") or, for example, use alt=”*” for a bullet and alt=”—” for a seperator.
  • Use the “title” attribute in addition to the “alt” where you want to add longer descriptions. Example:

<img src=”http://www.sueblimely.com/images/icons/ifollowblue.jpg ” alt=”You comment, I follow” title=”Your comment backlink is followed by search engines.” />

You comment, I follow

Checking out your page:

If you wish to see how well you are using the alt attribute,

  • Turn off images in your brower - see if your alt attributes make sense -try reading your page out loud.
  • Convert your blog post into audio using a service such as Odiogo

I guess my blog topics do not lead to relevant Yahoo Shortcut images but as this was suggested for the term “alt”, I liked it and appropriate or not I am using it :lol:

Popularity: 24% [?]

Sueblimely signature add to kirsty

RSS feed | Trackback URI

16 Comments »

2008-01-23 08:41:11

Kramer auto Pingback[…] Your page is on StumbleUpon […]

 
Comment by Megan from Imaginif
2008-01-23 08:42:51

Excellent and thank you.
I always wondered what the actual importance of the Alt Attribute was.
I find myself coming back to your teaching blogs all the time Sue because you speak in lay peoples terms - I love it.

Megan from Imaginif’s last blog post..Imaginif and All for Women formalise sistership

Comment by Sueblimely
2008-01-23 09:22:32

Thanks Megan - I sometimes wonder how understandable I am. When you have been doing something for a while it is often hard to get back to the basics and to miss important bits out. :smile:

Please let me know if there is anything else you need to know about although your site is magnificent already.

(Comments wont nest below this level)
 
 
Comment by abraham
2008-01-25 04:43:55

intelligent gurl :grin:

:arrow: Webmaster-Labs

abraham’s last blog post..Contradiction between Adsense and MyBlogLog Stats

 
 
2008-01-26 19:42:06

links from Technorati Sueblimely (I don’t know if this is her name) wrote a great article aboutthe ALT attribute.

 
Comment by mo
2008-01-27 07:52:43

Hello - my first visit here - via Entrecard.

I have been blogging for 2 years and this is the first sensible description of the “alt” attribute I’ve seen. Thanks for this info!

cheers,
mo @ It’s A Blog Eat Blog World

mo’s last blog post..try it for yourself

 
2008-02-23 18:20:58

[…] recently posted on how and why to use Alt tags. Blogging Mix has also published an article on the subject Blogging Tips - Importance Of Using ALT […]

 
2008-02-26 22:06:30

[…] The “Alt” Attribute - Sueblimely Does Image Search Traffic Convert? - Search Engine Journal What Matt Cutts has to say about Alt Text (Video embedded below - 3 minutes) […]

 
2008-02-27 13:30:18

links from TechnoratiReading An excellent article by Dosh Dosh (aren’t they all!) How to Become an Authority in Your Niche: Eight Content Development Tactics I recently posted on how and why to useAlt tags. Blogging Mix has also published an article on the subject Blogging Tips - Importance Of Using ALT Tags In Your Images, which includes a YouTube video by Matt Cutts Elevator statements and your blog- this may give you a lift. Groan.

 
2008-02-27 13:30:18

links from TechnoratiReading An excellent article by Dosh Dosh (aren’t they all!) How to Become an Authority in Your Niche: Eight Content Development Tactics I recently posted on how and why to useAlt tags. Blogging Mix has also published an article on the subject Blogging Tips - Importance Of Using ALT Tags In Your Images, which includes a YouTube video by Matt Cutts Elevator statements and your blog- this may give you a lift. Groan.

 
2008-03-06 04:52:13

links from TechnoratiReading An excellent article by Dosh Dosh (aren’t they all!) How to Become an Authority in Your Niche: Eight Content Development Tactics I recently posted on how and why to useAlt tags. Blogging Mix has also published an article on the subject Blogging Tips - Importance Of Using ALT Tags In Your Images, which includes a YouTube video by Matt Cutts Elevator statements and your blog- this may give you a lift. Groan.

 
Comment by Stephen Cronin Subscribed to comments via email
2008-03-25 21:56:41

Sue,

Excellent article, spot on, but what really made me comment was the Flickr image. Fantastic! :grin:
Stephen Cronin’s last blog post..Creating A JavaScript Array Dynamically Via PHP

 
Pingback by coComment - Site
2008-03-26 21:06:17

links from Technoratiview blog

 
Comment by Sueblimely
2008-03-27 08:06:03

Thanks Stephen, glad someone does not think me bananas for including it :grin:

 
Comment by Levon from Garage Doors
2008-06-04 00:22:39

Matt Cutts from Google recommends that you include the file extension in the ALT attribute because it makes it explicitly clear that it is alt text not page text.

 
Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> in your comment.

This site uses KeywordLuv by Stephen Cronin. Enter YourName@YourKeywords in the Name field and both will be shown. e.g. Sue from Blogging Sueblimely

WordPress | Based on The Sandbox