buttons must have content

Rule ID Control 4
Definition button elements must have text content.
  • The text content of a button element is used as its label, and ensures that the purpose of the button is spoken by screen readers when the button receives focus.
  • 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 button elements
  • button
  • The accessible label of a button element includes its text content along with the alt attribute content of any image elements it contains.
Informational Links