img
elements used as source anchors identifies the destination of the link.
img
element that is contained by an a
(anchor) element must have Alt text that identifies the link destination.
Question | Does the Alt text for this image identify the link destination. |
---|---|
PASS | Alt text identifies the link destination. |
FAIL | Alt text does not identify the link destination. |
img
element that is contained by a source a
(anchor) element.alt
attribute value and the a
(anchor) destination.img
elements used as source anchors identifies the destination of the link.<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>OAC Testfile - Check #15 - Negative</title> </head> <body> <p><a href="routes.html"><img src="topo.gif" alt="Current routes at Boulders Climbing Gym" /></a></p> </body> </html>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>OAC Testfile - Check #15 - Positive</title> </head> <body> <p><a href="routes.html"><img src="topo.gif" alt="large rock with arrow" /></a></p> </body> </html>