Multiple choice general knowledge

Which of the following correctly describes the use of the ALT attribute of the IMAGE tag?

  1. To provide an alternate image location if the original is not available

  2. To provide the image height

  3. To provide the image width

  4. To provide a textual description of the image

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The ALT attribute in the IMG tag provides alternative text that describes the image content. This text is displayed when the image cannot load and is used by screen readers for accessibility. It does not specify dimensions or alternate image locations.