RAWEBAA
11.2 Is each label associated with a form input field relevant (excluding special cases)?
- WCAG references
- 2.4.6 Headings and Labels (AA)
- 2.5.3 Label in Name (A)
- 3.3.2 Labels or Instructions (A)
- Techniques
- ARIA6
- ARIA9
- ARIA14
- ARIA16
- F96
- G82
- G131
- G208
- G211
- H44
- H65
Official methodology to test criterion 11.2
Test 1 (11.2.1)
- Find the form fields in the document whose label is provided by a
<label>element. - For each form field, check that the content of the element is relevant.
- If this is the case for each form field, the test is validated.
Test 2 (11.2.2)
- Find in the document the form fields whose label is provided by a
titleattribute. - For each form field, check that the content of the attribute is relevant.
- If this is the case for each form field, the test is validated.
Test 3 (11.2.3)
- Find in the document the form fields whose label is provided by a WAI-ARIA
aria-labelattribute. - For each form field, check that the content of the attribute is relevant.
- If this is the case for each form field, the test is validated.
Test 4 (11.2.4)
- Find in the document the form fields whose label is provided by a WAI-ARIA
aria-labelledbyattribute. - For each form field, check that the content of the referenced passage of text is relevant.
- If this is the case for each form field, the test is validated.
Test 5 (11.2.5)
- Find in the document the form fields whose label is provided both by a visible label and by the content of either a
<label>element, or atitleattribute or anaria-labelattribute or anaria-labelledbyattribute. - For each form field, check that the content of the
<label>element or thetitleattribute or thearia-labelattribute or thearia-labelledbyattribute contains the visible label. - If this is the case for each form field, the test is validated.
Test 6 (11.2.6)
- Find the form fields in the document whose visible label is provided by an adjacent button.
- For each form field, check that the visible content of the button is relevant.
- If this is the case for each form field, the test is validated.