HTML and CSS Certification Practice Test

Question: 1 / 400

What attribute must be added to the <img> tag for accessibility purposes?

alt

The "alt" attribute in the <img> tag is essential for accessibility because it provides a textual description of the image for users who rely on screen readers or those who cannot view the image. This attribute allows individuals with visual impairments to understand what the image represents, thereby making web content more inclusive. By delivering context through text, the "alt" attribute enhances the overall user experience, ensuring that all users, regardless of their abilities, can access the same information.

On the other hand, the "title" attribute offers additional information about the image but is not a substitute for the "alt" attribute regarding accessibility. The "src" attribute is necessary for specifying the image source but does not aid in accessibility. The "desc" attribute is not a widely recognized standard for images in HTML, and its use in this context is not applicable. Therefore, the "alt" attribute plays a critical role in making web content accessible to everyone.

Get further explanation with Examzify DeepDiveBeta

title

src

desc

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy