Conscientious Web designers make their Web sites as compatible as possible with accessibility tools such as screen readers, text-to-speech converters, and text-to-Braille converters for the benefit of the visually impaired. Making HTML text accessible is easyyou do nothing whatsoever. Accessibility tools are smart enough to ferret out the text on the page and turn it into spoken words or Braille. However, the technology does not yet exist for these tools to examine the content of an image and render an accessible description. It falls to you, the Web builder, to write these descriptions yourself and embed them in the HTML for screen readers and the like to find. You put the description in the alt attribute of the img tag, like this:
Notice that the description doesn't skimp on the details. The idea is to give the visually impaired a comparable experience of the image. That is, you want to convey the same information in your description that the picture provides visually. Therefore, when you add alt-text descriptions to your images, pretend you're writing a novel. Make your description conjure the image in the mind's eye. In the preceding example, you find that the text does a pretty good job of conveying the visual information. You wouldn't want to give a description like this: <img src="/books/2/30/1/html/2/neptune.jpg" width="300" height="150" alt="The planet Neptune"> Few would dispute the accuracy of this description, yet it doesn't have enough detail to conjure the image of Neptune in the mind's eye. Visually impaired people who hear this description already have to know what Neptune looks like to have a comparable experience of the image, which puts them at a disadvantage, since the image itself makes no prior assumptions. Someone who has never seen Neptune before can look at the image and learn what the planet looks like, so your text description needs to do the same thing.
|