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?
2 Answers
+ 1
alt is used to show the text when the image is not displayed.
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).