alt="" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

alt=""

Can any one say easily that what does this code do And why should we put it after the url that we enter???

15th Sep 2017, 6:03 PM
ali
ali - avatar
3 Answers
+ 20
check out this code to understand https://code.sololearn.com/Wr3tLUsq3w31/?ref=app
15th Sep 2017, 7:07 PM
Ranjan Bagri
Ranjan Bagri - avatar
+ 2
It is useful if the image didn't appear. So instead, the text inside alt will appear as an alternative for the failed image. Got it?
15th Sep 2017, 6:09 PM
Anas Abdelkarim
Anas Abdelkarim - avatar
+ 1
its useful in case the viewer is on text only mode or the image simply fails to load. the user will still have an idea what was there
15th Sep 2017, 7:16 PM
TED EGWU
TED EGWU - avatar