+ 2

In this code wht is alt=" "/>

<img src="tree.jpg" height="500px" width="500px" alt=""/> and in above code why there is free space between "" in alt=" "/>

6th May 2018, 8:24 AM
Jitesh Bharti
Jitesh Bharti - avatar
4 odpowiedzi
+ 28
Alt - alternative text. It is used for showing text if an image is not available. You can put there any text, even a space. https://www.sololearn.com/discuss/221017/?ref=app
6th May 2018, 8:31 AM
Igor Makarsky
Igor Makarsky - avatar
+ 2
please explain it I am confused
6th May 2018, 8:25 AM
Jitesh Bharti
Jitesh Bharti - avatar
+ 2
thanks got it
6th May 2018, 2:08 PM
Jitesh Bharti
Jitesh Bharti - avatar
+ 1
If an image fails to load for whatever reason, whatever is in the alt attribute gets displayed in the missing image box by the browser.
6th May 2018, 9:16 AM
Adam
Adam - avatar