0
what is the purpose of alt in img tag?
3 Answers
+ 1
Also for accessibility. Visually impaired people can know what is in the picture.
+ 1
Alt attribute in IMG tag provides accessibility. Also if the image is unable to upload, then the person will get to know what is in the picture through ALT .
0
for exampld if the picture is invalid, it will show text only(alt)