0

Html image help

body> <img src="tree.jpg" alt="" /> </body> In this piece of code what is the alt=“”/> used for? What might it ever change to?

20th Aug 2018, 11:41 AM
Jon Ritacco
2 odpowiedzi
+ 1
alt is used to show the text when the image is not displayed.
20th Aug 2018, 11:51 AM
program
program - avatar
0
This information should have been called out on the second slide of the HTML images lesson: https://www.sololearn.com/learn/HTML/1030/?ref=app The alt tag is also useful for accessibility purposes (for the visually impaired, e.g. if blind people use software to read the website to them) and for SEO (supposedly).
20th Aug 2018, 12:00 PM
Janning⭐
Janning⭐ - avatar