Skip header information, go directly to contentWeb Accessibility Center home page. Web-AIM tutorials. Web Accessibility in Mind (Web-AIM) home page.

Return to Tutorials List

How to Create Accessible Graphics

| page 1 | page 2 | page 3 | page 4 | page 5 | page 6 | page 7 | page 8 | Next Page

The "alt" attribute

One of the biggest accessibility problems on the Web today is the lack of alternative text for graphics and images.  Individuals with visual impairments often use screen readers or refreshable braillers that read the text on the page to them.  When these assistive technologies come across an image, there is no text for them to read to the user does not get the same information that someone with sight would get.  Fortunately, there is an easy fix for this problem. The HTML <img> tag provides a way to add alternative text through the "alt" attribute.

Let's look at an example. 

The image is of the University of the Antarctic logo.  The HTML code for this image is:

<img src="../tutorials/uofa/images/map_antarctica.jpg" width="150" height="117">

When a screen reader comes across an image with no alt attribute, there are a couple of things that could happen.  One, it could simply skip the image as if it were not even on the page.  Two, the screen reader would find some text that is associated with the image such as the file name and read that instead.  This means that the user misses the image content completely or gets some text that may or may not be useful to them.  Let's listen to a recording of the screen reader IBM Home Page Reader 3.0 reading the image.

Select a format: Wav | Mp3 | RealMedia | Transcript

Someone using a screen reader would have a difficult time knowing what the image was for.  So we need to add a text alternative to the image.  To do this we simply put alt="University of the Antarctic logo".  The HTML source would then look like this:

<img src="../tutorials/uofa/images/map_antarctica.jpg" width="150" height="117" alt="University of the Antarctic logo">

Let's listen to Home Page Reader 3.0 reading the image again so we can see the difference.

Select a format: Wav | Mp3 | RealMedia | Transcript

As you can tell, the addition of alternative text, or an alt attribute, allows users who are visually impaired to get the same information as someone who could see the image. 

| page 1 | page 2 | page 3 | page 4 | page 5 | page 6 | page 7 | page 8 | Next Page

 

Top of Page || Return to Tutorials List

This Tutorial is reproduced on this site with the kind permission of WebAIM. For additional information and resources on web accessibility please visit http://www.webaim.org.

© Copyright 2000-2001 WebAIM. All Rights Reserved. Terms of Use.