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

What is alt for?

23rd Dec 2016, 3:35 PM
Bhavana Chowdary
Bhavana Chowdary - avatar
4 Answers
+ 4
when your path is wrong the alt take the place of the pic and you write a words that remind you about the pic 😁😁😁
23rd Dec 2016, 3:42 PM
Garrach_hazem
Garrach_hazem - avatar
+ 4
"alt' is for "alternate text", a string which replace the picture if the file can't be loaded ( or waiting to be loaded / or be in a text browser / or be display desactivate ). This string is also used for display tooltip when mouse cursor is not moving and on top on the picture and mostly for giving description to blind people... So, this attribute is hardly recommanded by Html5 specifications ^^
23rd Dec 2016, 3:52 PM
visph
visph - avatar
+ 2
The alt attribute provides alternative information for an image
23rd Dec 2016, 3:40 PM
Oliver Brown
Oliver Brown - avatar
+ 1
tq
23rd Dec 2016, 3:41 PM
Bhavana Chowdary
Bhavana Chowdary - avatar