Element

a

Error Type

Potential

Guidelines

Requirement

The title attribute of all source a (anchor) elements describes the link destination.

Error

Anchor's title may not describe the link destination.

Short Description

Each source a (anchor) element must have a title attribute that describes the link destination.

How To Determine

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.

Steps To Check

Procedure

1. Check the title attribute value of each source a (anchor) element to determine if it describes the link destination.
2. Note that a source a (anchor) element must contain an href attribute.

Expected Result

1. The title attribute of each source a (anchor) element describes the link destination.

Failed Result

1. Modify the title attribute value so it describes the link destination.

Examples

Pass Examples

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>

Fail Examples

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>
Web site engine's code is copyright © 2023
Inclusive Design Institute