Skip to content

imageAltTexts

Reports images without alternative text.

✅ This rule is included in the md logical preset.

Providing alternative text for images is essential for both accessibility and SEO. Without alternative text, users who rely on screen readers or other assistive technologies won’t be able to understand the content of images. Search engine crawlers are also unable to understand images without alt text or other labels.

This rule helps catch cases where alternative text is missing or contains only whitespace.

![](sunset.png)
![ ](sunset.png)
![][ref]
[ref]: sunset.png

If your images are automatically given alt text by frameworks, then this rule will report false positives.

Made with ❤️‍🔥 in Boston by Josh Goldberg and contributors.