A document with a client-side image map; the image represents a traffic light. The img element has an alt attribute that duplicates the src attribute with the URI to the image instead of an appriopriate text alternative. The alt attributes of the image map's area elements are also empty. Alternative text for areas in client-side image maps: img element with image map; empty alt attributes in image map areas and URL as alt for image Christophe.Strobbe@esat.kuleuven.be en Copyright BenToWeb 2004-2007 2005-08-29 draft How to specify alternate text How to create client-side image maps Client-side image maps: the map and area elements

This test case is intended to fail: the alt attribute does not contain a good text alternative but the URL to the image file. In addition, the text alternatives for the areas of the image map are empty.


Can you identify the image in the image map?

Can you identify the image in the image map?

The image has no proper text description associated with it (the URL of the image file). Moreover, none of the areas in the image map has a text description.

The img element has a alt attribute containing the relative URL of the image file. Moreover, since each of the area elements in the map element has an alt attribute, this case does not pass.

This test case is identical to xhtml1_wcag2_20050630_1.1_l1_sc1_010, except that the alt attributes of the area elements are now empty.

(In Mozilla 1.7.3 and Firefox 1.0, the map does not work if the map element has only an id and no name attribute.)