input-image-alt-present
<input type="image"> must have an alt attribute
automaticWCAG 1.1.1 (A)confidence: highseverity: seriousperceivable
Checks that <input type="image"> elements provide an alt attribute to support a text alternative mechanism.
Applies to. Applies to <input type="image"> elements included in the accessibility tree.
Expectation. Each applicable <input type="image"> element has an alt attribute, and its accessible name is not the browser default for an image button. The alt attribute may be empty (alt="").
Examples
pass
<input type="image" src="search.png" alt="Search">
A non-empty `alt` names the image button.
fail
<input type="image" src="search.png">
No `alt` attribute.