label must have content

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