+ 1

What to do in alt attribute on image tag?

1st Apr 2017, 3:32 PM
Rohan Kumar
Rohan Kumar - avatar
2 Answers
+ 10
In case the image cannot be displayed, the alt attribute specifies an alternate text that describes the image in words. The alt attribute is required.
1st Apr 2017, 3:39 PM
Dev
Dev - avatar
+ 1
alt attribute is used for adding a small description about the image that will appear in case of text browsers which can't rendered or when image is not located.
1st Apr 2017, 3:41 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar