Solution:When an image contains words that are important to understanding the context, the all text should include those words. This will allow the alt text to play the same junction on the page as the image. Note that it does not necessarily describe the visual characteristics of the image itself but must convey the same meaning as the image.
Example:- An image on a website provides a link to a free newsletter. The image contains the text "Free newsletter. Get free recipes, news, and more. Learn more". the alt text matches the text in the image <img src = "news letter.gif" alt = free newsletter. Get free recipes, news, and more. Learn more."/>