Access 1.1.9.1

From Htmlpedia
Jump to: navigation, search

Access: [1.1.9.1]: <area> missing 'alt' text (Priority 1)

Cause:

You must include "alt" text for each <area> element within an image map. The "alt" text should indicate the destination of each link rather than provide a description of the image itself.

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.9</title>
</head>
<body>
<map name="imagemap">
<area shape="poly" coords="185,0,355,0,295,123" href="a.html" alt="Link a"/>
<area shape="poly" coords="336,202,549,203,549" href="b.html"/>
<area shape="rect" coords="0,10,172,10" href="c.html" alt="Service"/>
</map>

<img src="imap.jpg" usemap="#imagemap" alt="navigation" longdesc="ld.html"/>
</body>
</html>

Solution:

References: