Missing Image Alternative Text


Posted on March 15, 2017 by Webmaster
Webmaster


Missing Image Alternative Text data-lightbox='featured'

"All images including presentational images should include alt tag.  If image is linked then the alt tag should state the purpose of the link."
 

Example:

 

For instance an error will occur if you are missing the alternative text attribute in your image tag   For instance:

Presentational images:
<img src="myimage.jpg" />

Non-presentational (linked) images:
<a href="mypage.html" title="visit the setup page"><img src="myimage.jpg" /></a>

 

How to fix the error:

 

Presentational images:
<img src="myimage.jpg" alt="" />

Non-presentational (linked) images:
<a href="mypage.html" title="visit the setup page"><img src="myimage.jpg" alt="go to the setup page" /></a>

 


Share on Social Media