What is the role of alt attribute in img tag??
The required alt attribute specifies an alternate text for an image, if the image cannot be displayed. The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).
If the image cannot be displayed it will instead print the alt (alternative).
when image will not load in browser the value of alt attribute text will show at the place of image
@victorfernandez sir if I need picture of trees then what could be the possible alternative for that??
alt attribute gives the alternative name for image