Alt represents? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Alt represents?

20th Jun 2018, 1:15 PM
kapil jangid
kapil jangid - avatar
2 Answers
+ 3
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). https://www.sololearn.com/discuss/221017/?ref=app https://www.sololearn.com/learn/HTML/1030/
20th Jun 2018, 1:18 PM
Scooby
Scooby - avatar
+ 1
we use alt for the purpose when a image cannot be displayed on the webpage. syntax - <img src ="a.png" alt="a house">
24th Jun 2018, 9:01 AM
Alex
Alex - avatar