Element

a

Error Type

Known

Guidelines

  • WCAG 2.0 (Level A)
    Guideline Group2.4 Navigable: Provide ways to help users navigate, find content, and determine where they are.
    Guideline SubgroupSuccess Criteria 2.4.4 Link Purpose (In Context) (A)
  • WCAG 2.0 (Level AA)
    Guideline Group2.4 Navigable: Provide ways to help users navigate, find content, and determine where they are.
    Guideline SubgroupSuccess Criteria 2.4.4 Link Purpose (In Context) (A)
  • WCAG 2.0 (Level AAA)
    Guideline Group2.4 Navigable: Provide ways to help users navigate, find content, and determine where they are.
    Guideline SubgroupSuccess Criteria 2.4.4 Link Purpose (In Context) (A)
  • WCAG SRWSD

Requirement

Each source anchor contains text.

Error

Anchor contains no text.

Short Description

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.

How To Repair

Add text to the 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.

Steps To Check

Procedure

1. View the link text for each source a (anchor) element.
2. Note: A source a (anchor) element must contain an href attribute.
3. Note: The link text may be contained in the body text of the a (anchor) element or the Alt text of an image used as a link.

Expected Result

1. Each source anchor contains text.

Failed Result

1. Add text within the source anchor that describes the link destination.

Examples

Pass Examples

Anchor with text.
<?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>

Fail Examples

Anchor has no text.
<?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>

English | German | Italiano


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