Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What is the purpose of the alt attribute on an image?

  1. A To display a tooltip on hover
  2. B To describe the image for screen readers and when the image fails to load
  3. C To set the image caption
  4. D To specify the image format
Answer

To describe the image for screen readers and when the image fails to load

Alt text should convey the image's purpose. Purely decorative images should use an empty alt attribute so they are skipped.

All Front end Development MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as