2. What is the use of ALT attribute?
Answers
Answered by
1
Answer: This may help you
Explanation:
The alt attribute specifies an alternate text for an area, if the image cannot be displayed. The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).
Alt attribute is required for <img> tags if you want your markup to validate. Background images and bullets are just cosmetic, they don't need an alternate representation as they are not part of the content.
Similar questions