- 1

Alt

in html,in <img> why alt is required . please explain in detail with proper example.

6th Jan 2018, 4:27 PM
Hemal kaklotar
Hemal kaklotar - avatar
4 Antworten
+ 5
<img src="xyz.jpg" alt="Image not found">
7th Jan 2018, 6:51 AM
I'm_Groot
I'm_Groot - avatar
+ 2
no this is not required
6th Jan 2018, 4:51 PM
Kunal Kumar
Kunal Kumar - avatar
+ 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
6th Jan 2018, 4:33 PM
Mukul
Mukul - avatar