47. The image does not have the correct alternative

1.1.1

image alternative incorrect example

Description: The image does not have an alt text which indicates that the image is used for decorative purposes. At the same time there is a mouse over text (title attribute) present on the image.

Context: An image with a title is implied to have significance on the page, in which case alt text is also required.

<img src="images/UHalumni.jpg" title="Alumni Association">

How to fix it: If the image requires a description there should be an alt text. If not there should be neither alt text nor mouse over text for the image.

<img src="images/UHalumni.jpg" alt="UH Alumni Association" title="Alumni Association">

Techniques: H67