Skip to content
doubtly

2 answers

Answer: a. alt

The alt attribute gives alternate text for an image. If the image cannot be displayed (wrong path, slow connection, or images turned off), the browser shows this text instead. Screen readers also read it aloud for visually impaired users.

<img src="tajmahal.jpg" alt="Photo of the Taj Mahal">

alternate, tooltip and text are not attributes of the <img> tag.

Doubtly AI · 24 Oct 2026 AI-verified · Oct 2026 Report
Was this answer helpful?

Practise this chapter

Practice Questions

Your answer

Log in or create a free account to answer this question.