Requirement 19: Link Texttitle attribute of all source a (anchor) elements describes the link destination.
title may not describe the link destination.
a (anchor) element must have a title attribute that describes the link destination.
| Question | Does the anchor's title attribute describe the link destination? |
|---|---|
| PASS | title describes the link destination. |
| FAIL | title does not describe the link destination. |
title attribute value of each source a (anchor) element to determine if it describes the link destination.a (anchor) element must contain an href attribute.title attribute of each source a (anchor) element describes the link destination.title attribute value so it describes the link destination.title attribute value on source anchor describes the link destination.
<?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>Testfile - Check #191 - Negative</title> </head> <body> <p>We have information about <a href="dogs.html" title="dogs information">dogs</a> on our site.</p> </body> </html>
title attribute value on source anchor does not describe the link destination.
<?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>Testfile - Check #191 - Positive</title> </head> <body> <p>We have more <a href="dogs.html" title="cats information">information about dogs</a> on our site.</p> </body> </html>