WCAG H36: Require alt text on images used as submit buttons

Rule ID:
wcag/h36
Category:
Accessibility
Standards:
  • WCAG 2.2 (A)
  • WCAG 2.1 (A)
  • WCAG 2.0 (A)

WCAG H36 requires all images used as submit buttons to have a textual description using the alt attribute. The text must indicate the buttons function but not describe the image.

Rule details

Examples of incorrect code for this rule:

<a><img src="cat.gif"></a>

Examples of correct code for this rule:

<a>lorem ipsum</a>
<a><img src="cat.gif" alt="cat page"></a>