| Title | All input elements should have an explicit associated label |
|---|---|
| Description | Document containing a form with one input field (with type="text") and one label.
The label is positioned next to the input field but is not explicitly associated with it.
|
| Creator | BenToWeb (evlach@…) |
| Rights | Copyright BenToWeb 2005-2007 |
| Language | English |
| Date | 2005-08-29 |
| Status | accepted QA |
Technologies are markup languages or data formats. If the technology is a markup language, “features” refers to elements and attributes.
XHTML™ 1.0 The Extensible HyperText Markup Language (Second Edition)
Feature: input
(namespace: http://www.w3.org/1999/xhtml)
.
Technical specification: The INPUT element .
Feature: label
(namespace: http://www.w3.org/1999/xhtml)
.
Technical specification: The LABEL element .
The test case is intended to fail because the label is not explicitly associated with the input field.
Automatic evaluation.
“Rules” refer to success criteria in WCAG 2.0, checkpoints in WCAG 1.0 and similar requirements.
The test case fails the following success criterion at line 13, column 38: http://www.w3.org/TR/2006/WD-WCAG20-20060427/guidelines.html#content-structure-separation-programmatic.
The input element associated with the label only through positioning.
The input element should have an explicit associated label.
This test case maps to technique H44: Using label elements to associate text labels with form controls (http://www.w3.org/TR/2006/WD-WCAG20-TECHS-20060427/Overview.html#H44) but fails the test.
The test case fails the following success criterion at line 13, column 38: http://www.w3.org/TR/2006/WD-WCAG20-20050630/#content-structure-separation-programmatic.
Input element should have an explicit associated label.
The input element should have an explicit associated label.