Writing Code

Long Descriptions

  1. Sometimes short alt text does not convey the information in an image.
  2. This is obviously true for charts and graphs.
  3. Incorporating information into the actual html page for every visitor to use is usually the better choice.

Long Description Techniques

The best practice is to describe the image in the text of the page or with a caption.

If you need to use the long description attribute (longdesc) on the IMG element to provide text equivalents for images like charts or graphs you will be referring users to another web page that contains the detailed description. Example: <IMG src="traffic.jpg" ... longdesc="traffic.htm" alt="traffic density graph" />

The traffic.htm page contains a detailed text description of the graph.  Long descriptions can be included in the page also.

 

Long Descriptions Option