+ 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>

5th Sep 2017, 3:06 AM
Mun Hoh Lam
Mun Hoh Lam - avatar
5 Respuestas
+ 7
It also helps people who cannot view the file
5th Sep 2017, 3:09 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 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
5th Sep 2017, 3:08 AM
Lord Krishna
Lord Krishna - avatar
+ 4
alt makes it readable for search browsers.
5th Sep 2017, 3:08 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
Thanks a lot.
5th Sep 2017, 3:10 AM
Mun Hoh Lam
Mun Hoh Lam - avatar
+ 2
It's ok
5th Sep 2017, 3:38 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar