The alt attribute of the IMG element specifies the alternative text of the image.
<img src="example.gif" alt="alternate text">
| Attribute | Value | Explanation |
|---|---|---|
| alt=" " | text | short description |
This attribute must be specified for the IMG and AREA elements.
An alternative text is used as follows
This attribute is not an attribute for the tooltips. Use the title attribute if you hope for the tooltip displaying.
<p><img src="image/example.gif" alt="TAG index"></p> <p><img src="image/example.jpg" alt="The Rainbow Bridge"></p>

