An image within a link cannot have an empty “alt” attribute if there is no other text within the link¶
Severity code: Severe error
Any image that is within a link (an <code>a element) that has no other text cannot have an empty or missing “alt” attribute.
Example¶
Wrong¶
<a href="index.html"><img src="home.png" alt=""></a>
Right¶
<a href="index.html"><img src="home.png" alt="Return Home"></a>