label must reference control

Rule ID Control 6
Definition Each label element using the for attribute must reference a form control on the page.
  • label elements are useful for accessibility only when they reference or encapsulate form controls.
Required Yes for HTML5 and ARIA Techniques ruleset mapping
WCAG Success Criteria

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

Rule Category Forms
Scope Element
Target Resources label elements
  • label
  • 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