Inappropriate Alt Text on Input Element Check
Description
The “Inappropriate Alt Text on Input Element Check” evaluates whether any <input>
element that contains an alt
attribute is not a graphical button.
Example outcome
I found 1 <input>
element with the alt
attribute that is not a graphical button.
Impact
- Visual Impairments: Users with visual impairments may be confused by an unexpected or misleading alt attribute on non-image inputs.
- Cognitive Disabilities: Inconsistent UI labeling can create cognitive load and decrease task success.
Fixes
To address <input>
elements that inappropriately contain an alt
attribute:
- Locate the
<input>
element. - Remove the
alt
attribute from it.