label must have content

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 HTML4 Legacy Techniques ruleset mapping
WCAG 2.0 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