I have an HTML code like this:
<a href="http://example.com/kitten_image.jpg" title="Cute Kittens" download>
<span title="Cute Kittens">Download</span>
</a>
The problem with the above code is Google search engine is crawling the image with the text available inside the span
element, i.e. "Download".
I want search engines to crawl the images with the text written inside a
/span
tag's title
attribute, i.e. "Cute Kittens".
How do I modify the above code to do that?