How to specify an alternate text for an image in HTML ?
The alternative text for an image is useful when the image not displayed/loaded. If the image is not loaded the its alternative text is displayed on the web page. Alternative text is the alternative information for an image.
Example 1: In this example, the image path contains the image so it will display the image.
Example 2: In this example, the image path is not correct so it will display alternative text information.