+ 2

What is alt in img tag

please clarify the dot

4th Dec 2017, 2:58 AM
Vardhan
7 Réponses
+ 16
there are some probabilities that an image would just not load in a browser or the user has disabled images for data saving or any other issues. At that time, alt will work as a substitute text informing what the image is about. <img src="girl.png" alt="a girl with an umbrella"> so the above example tells us that if the picture fails to load, "a girl with an umbrella" text will appear in the image box instead.
4th Dec 2017, 3:09 AM
inactive instagrammer
inactive instagrammer - avatar
+ 4
whenever you attach an image link there's a chance something might go wrong either due to a wrong src links or other reasons.in these the alt has to be displayed
4th Dec 2017, 3:30 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 4
Alternative text- alt
4th Dec 2017, 4:26 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 3
alt is said to be alternative text in IMG tag we can use as attribute and when image fails the alternatively the text is displayed
6th Dec 2017, 3:15 AM
vamsi
+ 2
it's an alternative text which will get displayed in place of image if image fails to load via browser get request (404) or if images are disabled by user for data saving
4th Dec 2017, 9:45 AM
deepak odedara
deepak odedara - avatar
+ 1
the alt is also important for SEO and search engines.its also neccesary for people who use sreen readers for checking the web; I'm talking about blind people!
4th Dec 2017, 3:45 AM
Hassan Saed
Hassan Saed - avatar
0
Alt means the alternative tag
27th Dec 2017, 9:48 AM
navyasurekha