Question | Does the anchor contain text that identify the link destination? |
---|---|
PASS | Anchor has text that identifies the link destination. |
FAIL | Anchor does not have text that identifies the link destination. |
a
(anchor) element.a
(anchor) element must contain an href
attribute.a
(anchor) element or the Alt text of an image used as a 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 #197 - Negative</title> </head> <body> <p>Here is a link to <a href="dogs.html">information about dogs</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 #197 - Positive</title> </head> <body> <p>For more information about dogs, <a href="dogs.html">click here</a>.</p> </body> </html>