HTML · Question 9 of 12
What is the alt attribute of an image for?
1 answer is correct. Medium
Show answer
Answer
- A It replaces the image with text, e.g. for screen readers
Explanation
alt provides a text replacement if the image cannot be seen or loaded. This is important for accessibility.