Element

a

Error Type

Known

Guidelines

Requirement

Anchor element must have a title attribute.

Error

Anchor element missing a title attribute.

Short Description

Each source a (anchor) element must have a title attribute.

How To Repair

Add a title attribute to your a (anchor) element.

Repair Example

<a href="dogs.html" title="stories about dogs"/>.

Steps To Check

Procedure

1. Check each source a (anchor) element for the presence of a title attribute.
2. Note that a source a (anchor) element must contain an href attribute.

Expected Result

1. Each source a (anchor) element contains a title attribute.

Failed Result

1. Add a title attribute to each source a (anchor) element.

Examples

Pass Examples

a (anchor) element does have a title attribute.
<?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 #190 - 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

a (anchor) element does not have a title attribute.
<?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 #190 - Positive</title>
</head>
<body>
<p>We have more <a href="dogs.html">information about dogs</a> on our site.</p>
</body>
</html>

English | German | Italiano


Web site engine's code is copyright © 2011
Inclusive Design Institute
Web Service API