Image Alt Text Attribute. One way of doing so is to ensure that any text used in the image is indicated in the alt attribute s value. The alt text describes what s on the image and the function of the image on the page.

The alt attribute provides alternative information for an image if a user for some reason cannot view it because of slow connection an error in the src attribute or if the user uses a screen reader. The required alt attribute specifies an alternate text for an image if the image for some reason cannot be displayed because of slow connection an error in the src attribute or if the user uses a screen reader. Adding alternative text to photos is first and foremost a principle of web accessibility.
The alt text is an alternative to the images and so it helps a browser to display something when the image can t be displayed.
Img src spacer gif alt learn more in this guide from webaim. Alt text short for alternative text is a small piece of text intended to describe an image photograph chart or any other picture on a website. But technically they re not tags they re attributes. Here s what that looks like.