What to do in alt attribute on image tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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