what is the use of alternative text "alt" for image tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

what is the use of alternative text "alt" for image tag

whatever data we type under alt attribute where do we see it in html

28th Jun 2016, 10:13 AM
Danzo Lopes
Danzo Lopes - avatar
4 Answers
+ 5
if your image fails to load alt attribute provide an alternate text in place of unloaded image
28th Jun 2016, 6:18 PM
Naveen Mishra
Naveen Mishra - avatar
+ 1
If you don't have it, it doesn't affect your image showing or not, but if for some other reasons your image does not show up, the alt text would show. One importance is that text loads quickly, quite unlike image which might take a longer while, during which something may go wrong. Also, the image may be in a format the browser does not use. Good luck.
29th Jun 2016, 4:42 AM
Daniel Chukwuji
Daniel Chukwuji - avatar
0
the alt="Stuff" is a placeholder for text, like when it fails to load, it displays the thing in quotation, im mine, it would display 'Stuff' as a 'alt' ernative to the picture
28th Jun 2016, 2:20 PM
John Callahan
John Callahan - avatar
0
what if I don't use alt will that effect my image
28th Jun 2016, 2:59 PM
Danzo Lopes
Danzo Lopes - avatar