← Quiz: HTML Basics: all 10 questions
Quiz: HTML Basics · Question 2 of 10
What is the alt attribute of an image for?
What is the alt attribute of an image for?
- A.Image size
- B.A text description for screen readers and when the image can't load
- C.The image file path
- D.A tooltip only
Answer & explanation
Correct answer: A text description for screen readers and when the image can't load
alt text helps accessibility and SEO.
Can you get the rest right without peeking?
Take the timed Quiz: HTML Basics quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →