alt attribute is used to provide information about image <img /> tag. The alt full form is alternate, By using alt attribute you can show message about image to viewer when your image does not appear in browser.
<img src=URL
alt=image name or information
/>
Here URL is image location where image is placed in your PC or laptop and alt is the name or any inforamtion about image.
Now if you remove your picture from directory and run above code it will show you alt text which is bulb.
Open notepad or any other text editor, follow the following points.
save file with name task.html or task.htm and then open it using any browser and see results.
Birds Image
Birds Image after changing image directory alt Attribute content Birds displayed
In above task you can see alt text which is Birds because we have deleted picture from directory or change directory in URL address.