What is the purpose of alt? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

What is the purpose of alt?

24th Dec 2015, 7:04 AM
amna anees khan
amna anees khan - avatar
17 Answers
+ 13
Alt attribute specifies text to be displayed if for some reason the browser cannot show the image.
18th Feb 2016, 3:16 PM
Rugved
Rugved - avatar
+ 4
alt define alternative text which is displayed when the picture cannot be displayed for some reason - bad net connection, ...
8th Mar 2016, 9:11 AM
Jiří Löffelmann
+ 3
it describes a text if the image is unavailable
14th Apr 2016, 9:01 AM
Naveen Kumar K
Naveen Kumar K - avatar
+ 3
it's clearly mentioned that if the image can't be loaded at that moment, so instead of the image an (alternate) text will appear in that place. for alternate a short for alt is used. hope it helps.
4th Jun 2016, 6:30 PM
Utkarsh Shrivastav
Utkarsh Shrivastav - avatar
+ 3
the alt is for a description of the image if for some reason the image could not load.it's more or less like a back up plan
7th Jun 2016, 9:52 AM
Ozii
Ozii - avatar
+ 2
at attribute shows a text instead of image in case the image isn't Loaded it is used as an attribute in the <img> tag
1st Jun 2016, 6:05 AM
yash munjal
yash munjal - avatar
+ 1
additionally, alt tag is also useful for search engines bots to index the image while crawling the website. so it is considerable while developing the website to have all images with unique alt tag on html side...
2nd Jun 2016, 7:13 PM
Chintan Dave
Chintan Dave - avatar
+ 1
In case the image fails to render, the value of the alt attribute will appear in substitution of the image.
22nd Dec 2016, 11:09 PM
Erik Johanson
Erik Johanson - avatar
0
It is used to differentiate among #ome set of a similar contents by making it specific
3rd Jun 2016, 11:30 PM
Cele Prince
Cele Prince - avatar
0
it specifies an alternate text that describes the image in words
5th Jun 2016, 2:12 PM
Obafunmi Ogunkeye
Obafunmi Ogunkeye - avatar
0
It can be read to a person who is blind by narrator program
7th Jun 2016, 1:40 AM
darius mohammed
darius mohammed - avatar
0
it is an attribute of img tag which is displayed if the image doesn't load due to some error
23rd Dec 2016, 12:00 PM
Naveen Kumar K
Naveen Kumar K - avatar
0
alt is used when image does not load
18th Jan 2017, 7:14 AM
Wahaj Naeem
Wahaj Naeem - avatar
0
It's also what a browser reader uses when "reading" images
28th Jan 2017, 7:11 PM
BackerBjorns
BackerBjorns - avatar
0
Let's the browser no an alternative option if img is un-available to load..
29th Jan 2017, 9:47 PM
Paul Degennaro
Paul Degennaro - avatar
0
👏👍
1st Feb 2017, 6:24 PM
rasoul norouzi
rasoul norouzi - avatar
0
alternatively you use onError="this.src='path_to_default_image_or_placeholder';". This will load the default image when the image is not loaded or unavailable.
28th May 2018, 10:12 AM
Naveen Kumar K
Naveen Kumar K - avatar