+ 1
What's the significance of the 'alt' in the command below? Would someone provide an example on when/where this applies? Thanks
<html> <head> <title>first page</title> </head> <body> <img src="tree.jpg" alt="" /> </body> </html>
5 Antworten
+ 7
It also helps people who cannot view the file
+ 8
it is used for alternative text like for when the image could not be displayed due to slow networks, no connection, or for screen readers, SEO, etc.
tip load this code but before running stop your internet then check the output what did you get?
https://code.sololearn.com/WjXBaep9yLwp/?ref=app
+ 4
alt makes it readable for search browsers.
+ 2
Thanks a lot.
+ 2
It's ok