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

what is the use of alt

1st Sep 2016, 9:50 AM
amith varghese
amith varghese - avatar
3 Answers
+ 2
The required alt attribute specifies an alternate text for an image, if the image cannot be displayed. The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).
1st Sep 2016, 6:02 PM
Vino Vishal
Vino Vishal - avatar
+ 1
the line we write inside "" after alt , is displayed if the image does not exist due to any reason.
9th Sep 2016, 2:32 PM
vandana singh
vandana singh - avatar
- 2
you can see the lesson
1st Sep 2016, 10:45 AM
Lâm Thái Long
Lâm Thái Long - avatar