Input Image Alt
Checks that input type='image' elements have alt text
Checks that input type=‘image’ elements have alt text
| Rule ID | a11y/input-image-alt |
| Category | Accessibility |
| Scope | Per-page |
| Severity | error |
| Weight | 8/10 |
Solution
Image inputs (input type=‘image’) are submit buttons that use an image. They must have alt text describing the button’s action. Example: <input type='image' src='submit.png' alt='Submit form'>
Enable / Disable
Disable this rule
squirrel.toml
toml[rules]
disable = ["a11y/input-image-alt"]Disable all Accessibility rules
squirrel.toml
toml[rules]
disable = ["a11y/*"]Enable only this rule
squirrel.toml
toml[rules]
enable = ["a11y/input-image-alt"]
disable = ["*"]