alternate text

<img src="" alt="">

Internet Explorer Firefox Opera
Inline-block Empty

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

  • Non-graphical browsers (Links, Lynx) : Browsers display the alternative text in place of the image.
  • Talking browsers : Browsers read out the alternative text.
Tips and Notes

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>

TAG index

The Rainbow Bridge