input-image-alt-decorative

<input type="image"> with alt="" must be appropriate (manual review)

manualWCAG 1.1.1 (A)confidence: mediumseverity: minorperceivable

Flags <input type="image"> elements with empty alt for human review (usually not appropriate for functional controls).

Applies to. Applies to <input type="image"> elements whose alt attribute is present but empty once trimmed, and which still carry a name from another source: an ARIA name resolving to non-empty text, or a title. Without that other name there is nothing to weigh the empty alt against, and the control is input-image-alt-present's failure instead. The element must be included in the accessibility tree, and role="presentation"/"none" takes it out of scope unless it is focusable, which restores its role.

Expectation. Human review is required to confirm that the provided text alternative is accurate and appropriate.

Examples

can't tell
<input type="image" src="submit.png" alt="" title="Submit order">

Empty alt is unusual on a functional control; a `title` still names it, but worth confirming the empty alt was deliberate.

n/a
<input type="image" src="submit.png" alt="Submit order">

Non-empty alt is `input-image-alt-quality`'s question, not this rule's.

View source