Use label elements to associate text labels with form controls [H44]

Test info
Possible Results

Test info

Test for Success Criterion 4.1.2

About

Checked Elements: all
This test check if label for the input element of type radio, checkbox, file, text or password, the select element or the textarea is at a correct position.

Short Description

The objective of this technique is to use the label element to explicitly associate a form control with a label. This test check if label for the input element of type radio, checkbox, file, text or password, the select element or the textarea is at a correct position.

WCAG 2.0

Principle 4: Robust
Content must be robust enough that it can be interpreted reliably by a wide variety of user agents, including assistive technologies.
WCAG 2.0: Principle 4
Guideline 4.1: Compatible:
Maximize compatibility with current and future user agents, including assistive technologies.
Understanding Guideline 4.1
Success Criterion 4.1.2: Name, Role, Value (Level A)
For all user interface components (including but not limited to: form elements, links and components generated by scripts), the name and role can be programmatically determined ; states, properties, and values that can be set by the user can be programmatically set ; and notification of changes to these items is available to user agents , including assistive technologies . Note: This success criterion is primarily for Web authors who develop or script their own user interface components. For example, standard HTML controls already meet this success criterion when used according to specification.
Understanding: Success Criterion 4.1.2
Techniques

Possible Results

Failed The name of the form control is not set correctly

The label for the input element of type radio, checkbox, file, text or password, the select element or the textarea is at the wrong position.

Passed Please check the name of the form control is set correctly

The label for the input element of type radio, checkbox, file, text or password, the select element or the textarea is at a position which needs to be checked.