Description

This failure describes a problem that occurs when no label element is used to explicitly associate a form control with a label where the visual design uses a label.

Note 1:
Elements that use explicitly-associated labels are:

input type="text"

input type="checkbox"

input type="radio"

input type="file"

input type="password"

textarea

select

Note 2:
The label element is not used for the following because labels for these elements are provided via the value attribute (for Submit and Reset buttons), the alt attribute (for image buttons), or element content itself (button).

Submit and Reset buttons (input type="submit" or input type="reset")

Image buttons (input type="image")

Hidden input fields (input type="hidden")

Script buttons (button elements or <input type="button">)

Examples

Failure Example 1:

The following example demonstrates a form that visually presents labels for form controls, but does not use the label element to associate them with their controls. The code example below is a failure because assistive technology may not be able to determine which label goes with which control.