a
(anchor) element must contain text. The text may occur in the anchor text or in the title
attribute of the anchor or in the Alt text of an image used within the anchor.
a
element or the title
attribute of the a
element or, if an image is used within the anchor, add Alt text to the image.
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> <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" /> <title>OAC Testfile - Check #174 - Negative</title> </head> <body> <p>Select link for more <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> <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" /> <title>OAC Testfile - Check #174 - Positive</title> </head> <body> <p>For more information <a href="dogs.html"></a>.</p> </body> </html>