You Should Use Alt or Title Attribute to Describe Images
These ALT and TITLE features are important in the IMG image tag because they affect search ranking but are also confusing because we do not know whether to use TITLE or ALT or both when describing images.
If you are a little familiar with the HTML language, then you know about the image tag <IMG> that is used to display images in web pages. This tag supports two similar attributes – TITLE and ALT – which both describe the image in the words.
These properties are important because they affect image search ranking but are also confusing because we often do not know whether to use TITLE or ALT or both features while describing images or not.
Fortunately, the rules are very simple – always add the ALT attribute to your images, but if the image is only a link, then include only the TITLE attribute. I have tried to paint it with an image of McDonald’s Burger.
Case A: Burger is not linking anywhere, so we use the ALT feature describing the image.
Case B: The burger image is linked to the nutrition section on the McDonald’s website, so we also include a TITLE feature that gives the visitor an idea about the linked page. Note that the ALT feature continues to describe the image in the form of image A.
This point is made with a minor error in Google SEO guide. It says, “If you decide to use an image as a link, filling out your alt text helps Google understand more about the page you are linking to.” I think that according to John Mueller’s advice “alt text” should be read as “title text”.