- 1
Alt
in html,in <img> why alt is required . please explain in detail with proper example.
4 ответов
+ 6
alt is for an alternate im... Nah, just use the search bar, it has been asked many times already.
https://www.sololearn.com/Discuss/673637/?ref=app
https://www.sololearn.com/discuss/91820/?ref=app
https://www.sololearn.com/discuss/534030/?ref=app
https://www.sololearn.com/discuss/705507/?ref=app
https://www.sololearn.com/discuss/556852/?ref=app
https://www.sololearn.com/discuss/486/?ref=app
+ 5
<img src="xyz.jpg" alt="Image not found">
+ 2
no this is not required
+ 1
alt stands for alternate.
let's take an example to understand alt working
<img src="xyz.jpg" alt="hello">
in the above code, image name is xyz.
In case image xyz does not exist or unable to load.
the text in alt attribute i.e" hello" will display in place of image