0

What is the function of <alt=""> and why it is used?

7th Oct 2017, 3:12 AM
Clash with thunder
Clash with thunder - avatar
2 Answers
+ 3
The required alt attribute specifies an alternate text for an image, if the image cannot be displayed.
7th Oct 2017, 11:37 AM
Rishita
Rishita - avatar
+ 1
The purpose of the alt is to have backup text in case the image don't load or is not supported by the browser. Also if someone that is blind is using a text to speech program, the program will read the alt because obviously it can't read the image.
7th Oct 2017, 3:24 AM
Microhacker
Microhacker - avatar