How to set alt attribute for an <a> tag when it contains an image URL?

by stack   Last Updated July 12, 2019 14:04 PM - source

Here is my code:

<a itemprop='image' target='_blank' href=''>show</a>

See? It is a <a> tag which contains the URL of an image. That's why I've set itemprop='image' to it and fortunately, Google detects it as well.

enter image description here

All I want to know, how can I also set a text to that image? Something like alt attribute?

Tags : seo google markup

Related Questions

Rich snippet stars back then disappeared again?

Updated October 25, 2016 09:01 AM

JSON LD Contact on Homepage or Contact Page?

Updated March 08, 2018 03:04 AM

On-page Markup and Sitemap Multi-language

Updated February 23, 2018 11:04 AM