🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Image size
  2. B.A text description for screen readers and when the image can't load
  3. C.The image file path
  4. 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 →