An image element has no alt text, so assistive technology cannot describe it
What it finds
Screen readers announce an image by its alt text. Without one they read the file name or skip the image, and the information it carries is lost. An image that only decorates takes alt="", which tells them to skip it.
Reported are <img>, <area> with href and <input type="image"> without alt, aria-label or aria-labelledby, unless they spread attributes or have the role presentation or none.
From the rule's source, img_without_alt.rs.
Turn it on, off or suppress it
The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/ts:img-without-alt" = "warning"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/ts:img-without-alt] reason="..."tx0 explain tx0/ts:img-without-alt shows the same in the terminal. Found a false positive? Report it.