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
HTML5 and ARIA Techniques
|WCAG Success Criteria
3.3.2 Labels or Instructions (Level A, Primary Success Criterion)
- The accessible label of a
button element includes its text content along with the
alt attribute content of any image elements it contains.