What's rule of alt="" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What's rule of alt=""

9th Sep 2019, 8:17 PM
Abdelatif
4 Answers
+ 5
The alt attribute specifies an alternative text to be displayed in case the image fails to load. E.g. <img src="tree.jpg" alt="Blank"> The text blank is displayed if the image tree fails to load. https://www.sololearn.com/learn/HTML/1030/
9th Sep 2019, 9:40 PM
Jella
Jella - avatar
+ 4
The alt attribute is the Html attribute used in Html and XHtml documents to specify alternative text(alt text) that is to be rendered when the element to which it is applied cannot be rendered. The alt attribute is used by "screen reader" software so that a person who is listening to the content of a webpage (for instance, a person who is blind) can interact with this element. Every image should have an alt attribute to be accessible, but it need not contain text. It can be an empty or null attribute: alt=""
9th Sep 2019, 8:39 PM
N A I E B I
N A I E B I - avatar
+ 4
Absolutely yes Abdelatif alt=" "
9th Sep 2019, 11:15 PM
Jella
Jella - avatar
+ 2
So it is alt=" the message ". a message if the image cannot be uploaded due to size, link or source
9th Sep 2019, 11:08 PM
Abdelatif