Skip to main content
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)

  1. Find the form fields in the document whose label is provided by a <label> element.
  2. For each form field, check that the content of the element is relevant.
  3. If this is the case for each form field, the test is validated.

Test 2 (11.2.2)

  1. Find in the document the form fields whose label is provided by a title attribute.
  2. For each form field, check that the content of the attribute is relevant.
  3. If this is the case for each form field, the test is validated.

Test 3 (11.2.3)

  1. Find in the document the form fields whose label is provided by a WAI-ARIA aria-label attribute.
  2. For each form field, check that the content of the attribute is relevant.
  3. If this is the case for each form field, the test is validated.

Test 4 (11.2.4)

  1. Find in the document the form fields whose label is provided by a WAI-ARIA aria-labelledby attribute.
  2. For each form field, check that the content of the referenced passage of text is relevant.
  3. If this is the case for each form field, the test is validated.

Test 5 (11.2.5)

  1. 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 a title attribute or an aria-label attribute or an aria-labelledby attribute.
  2. For each form field, check that the content of the <label> element or the title attribute or the aria-label attribute or the aria-labelledby attribute contains the visible label.
  3. If this is the case for each form field, the test is validated.

Test 6 (11.2.6)

  1. Find the form fields in the document whose visible label is provided by an adjacent button.
  2. For each form field, check that the visible content of the button is relevant.
  3. If this is the case for each form field, the test is validated.