Esc

COMARK0009 · warning

comark/missing-alt

Describe every image in its alt text

An image whose alt text is empty. Screen readers skip it or read out its file name, and a reader whose image doesn't load sees nothing. Write what the image shows, the way you'd tell someone who can't see it. An image that's only decoration takes {alt=""}, which tells screen readers to skip it on purpose.

Incorrect

![](https://example.com/pigeons.png)
md
lint-comark example.mdexample.md:1:3 comark/missing-altThe image https://example.com/pigeons.png on line 1 has no alt text, so screen readers skip it or read its file name.Describe what it shows between the brackets, as in ![Pigeons on the roof](https://example.com/pigeons.png), or add {alt=""} after it if it's only decoration.✖ 1 problem

Correct

![Three pigeons on the station roof](https://example.com/pigeons.png)
md
lint-comark example.md✔ No problems