Definition Each label element using the for attribute must reference a form control on the page.
Purpose
  • label elements are useful for accessibility only when they reference or encapsulate form controls.
Mappings
  • HTML4 Legacy Techniques (Recommended)
  • HTML5 and ARIA Techniques (Required)
WCAG 2.0 Success Criteria

3.3.2 Labels or Instructions (Level A, Primary Success Criterion)

Rule Category Forms
Scope Element
Target Resources label elements
  • label
Techniques
  • For a label element to properly reference a form control, ensure that the for attribute value on the label element exactly matches the id attribute value on the form control.
Informational Links