Element

input

Error Type

Known

Guidelines

  • BITV 1.0 (Level 2)
    Guideline GroupLevel 2
    Guideline Subgroup9.4 Create a logical tab order through links, form controls, and objects.
  • WCAG 1.0 (Level AAA)
    Guideline GroupPriority 3
    Guideline Subgroup9.4 Create a logical tab order through links, form controls, and objects.

Requirement

All input elements, type of "password", have a valid tab index.

Error

input element, type of "password", missing a tab index.

Short Description

input element that contains a type attribute value of "password" must have a tabindex attribute.

How To Repair

Add a tabindex attribute to your input element.

Steps To Check

Procedure

1. Check all input elements that have a type attribute value of "password".
2. Check if the input element contains a tabindex attribute.
3. Check if the tabindex attribute value contains one or more characters.

Expected Result

1. All input elements, type of "password", have a valid tab index.

Failed Result

1. Add a valid tabindex attribute value to the input element.

Examples

Pass Examples

Password input element has valid tabindex 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>ATRC Testfile - Check #140.2 - Positive</title>
</head>
<body>
<form action="http://www.example.com" method="post">
<p>
<label for="name">Name</label>: <input type="password" name="name" id="name" value="your name here" tabindex=""/>
</p>
</form>
</body>
</html>

Fail Examples

Password input element does not have tabindex 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>ATRC Testfile - Check #140.1 - Positive</title>
</head>
<body>
<form action="http://www.example.com" method="post">
<p>
<label for="name">Name</label>: <input type="password" name="name" id="name" value="your name here" />
</p>
</form>
</body>
</html>
Web site engine's code is copyright © 2023
Inclusive Design Institute