Any non-decorative images should have a non-empty “alt” attribute¶
Severity code: Possible error
Any image that is not used decorativey or which is purely for layout purposes cannot have an empty “alt” attribute.
Example¶
Wrong¶
<img src="dog.jpg" alt="">
Right¶
<img src="dog.jpg" alt="A photograph of a dog">