All Exams Test series for 1 year @ ₹349 only
Question

Which of the statements given below is/are correct?

It is always important and useful to include an 'alt' attribute on 'img' tag in HTML because

A. users who cannot see the image due to vision impairment can have a textual description of the image (which can be spoken aloud by a screenreader).

B. If the image fails to load (slow connection, broken path, etc.) then alt text is displayed instead.

C. SEO (Search Engine Optimization) benefits.

Choose the correct answer from the options given below :

The correct answer is

A, B, and C

A, B and C are valid benefits of appropriate alt text: it supplies an accessible text alternative, provides fallback information when an image is unavailable, and helps search engines interpret image content. Purely decorative images normally use an empty alt attribute so assistive technology can skip them.

Was this answer helpful?

Important Questions from HTML

  1. How many different levels of heading does HTML support?

  2. In the HTML (Web Page Designing Language), what is the letter 'H' referred to ?
  3. Which of the following is NOT a pair tag in HTML?

  4. _______ specifies the HTML Element that you want to style.

  5. The web uses the _________ to request and serve web pages and programs.

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App