The <img>
element that is located inside an <a>
(i.e. link) element should use an alternative text (alt attribute) which supplements the link text and describes the image. Otherwise it should use a null value. Example: <a href="home.html">
<img src="house.gif" alt="home page icon">
Go to the home page </a>
.
Engine scans the page for any <a>
element that contains an <img>
element, and compares the “alt” attribute with the <a>
inner text.
This helps users understand the purpose of each link so they can decide whether they want to select the link.
<a href="linknew.html">
<img src="/example_"skip.gif" alt="example_">
New link
</a>