+ 4

Here what is the meaning and usage of alt in this code

<html> <head> <title>first page</title> </head> <body> <img src="http://www.sololearn.com/images/tree.jpg" alt="" /> </body> </html>

10th Apr 2019, 4:32 PM
Aman deep
Aman deep - avatar
2 ответов
+ 2
it displays the text you put in alt in case the picture doesnt load or the user blocks images . it will then just show the text.
10th Apr 2019, 4:38 PM
Jason Kennedy
+ 4
10th Apr 2019, 4:42 PM
Seniru
Seniru - avatar