<img src="" alt="">

  • IE
  • Cr
  • Sf
  • Fx
  • O

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.


<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