What is the purpose of the alt attribute in <img>?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
The alt attribute provides alternative text for an image if it cannot be displayed. It also improves accessibility for visually impaired users.
Example:
<img src="image.jpg" alt="A beautiful landscape">
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
The alt attribute provides alternative text for an image if it cannot be displayed. It also improves accessibility for visually impaired users.
Example:
<img src="image.jpg" alt="A beautiful landscape">
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the essential attributes in image tag in html?
What are attributes and how do you use them?
How do you tag?
Do all HTML tags come in a pair?
Is html5 supported by all browsers?
Are there instances where the text will appear outside of the browser?
How many tags can be used to separate a section of texts?
What is a hypertext link?
How do tags work?
In HTML 5 we do not need DTD why?
What are some of the common lists that can be used when designing a page?
What is role html?