Alt text (alternative text) is a description of an image that's shown to users in case the image fails to load on a webpage. It's also used by screen-reading tools to describe images to visually impaired readers, and it can help with search engine optimization (SEO), as it allows search engines to better understand the content of your images.
Yoast SEO doesn't directly let you add alt text to images; instead, it helps you remember to do so by providing SEO recommendations. These recommendations are based on best practices for SEO, including appropriate use of image alt tags.
However, you can add alt text to images in WordPress, which should be the content management system (CMS) you're using if you have Yoast installed. Here are the steps:
The alt text you add here will be recognized by Yoast SEO when it analyzes your page for SEO friendliness. If you forget to add alt text, Yoast SEO will remind you in its analysis results.
Here's a sample code piece of an
img tag with alt text:
Remember, alt text should accurately describe the contents of the image, be concise, and, if possible, include the keyword or phrase that the page is focused on.