<img src="" alt="">
Browser |
|
---|---|
Type |
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.