label must have content

Rule ID Control 7
Definition Every label and legend element must contain text content.
Purpose
  • A label or legend elements is only useful for accessibility when it contains content that describes the purpose of the associated form control(s).
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 and legend elements
  • label
  • legend
Techniques
  • Add text content to label and legend elements that describes the purpose of the form control or group of form controls.
Informational Links