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 is li a in html?
How to set a link to image in html?
How many spaces is a tab?
What is session storage?
Give an example of new elements in html5 to support multimedia and graphics?
In how many ways can we position an HTML element? Or what are the permissible values of the position attribute?
What is the html5 stack?
Difference between float:left and display:inline.
What is a hypertext link?
What is transitional xhtml?
Can a div have 2 classes?
Should I use br tag?