The AlternateText property is used to set or return the alternate text of an image.
This property specifies the text to display if the image is not available.
The alternate text displays as a ToolTip if your browser supports it (Internet Explorer)
Attribute | Description |
---|---|
text | Specifies an alternate text for the image |
The following example sets the AlternateText for an Image control (image file does not exist):