What is the purpose of the "alt" attribute in an HTML image tag?

  • Alignment
  • Alternative text
  • Animation
  • Attributes
The purpose of the "alt" attribute in an HTML image tag is to provide alternative text for an image. This text is displayed in place of the image if the image file cannot be loaded or if the user is using a screen reader. It is important for accessibility and SEO purposes.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *