Access 1.1.2.5

From Htmlpedia
Jump to: navigation, search

Access: [1.1.2.5]: 'longdesc' not required (Priority 1)

Cause:

If "alt" text cannot adequately describe an image's function or purpose, provide access to a more complete description via the "longdesc" attribute. Note you must also add a d-link (descriptive link) because many current browsers do not support the "longdesc" attribute. The advantage of including "longdesc" in current web documents is that the description will remain accessible when newer browsers deprecate d-links.

Example:

Bad
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
 "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<title>aert1.0/1.1.2</title>
</head>
<body>
<img src="pie-chart.jpg" alt="Pie chart of federal expenditures"/>
<a href="pie-chart.html">D</a>
</body>
</html>

Solution:

References: