I have a wallpaper gallery page that displays small thumbnails, when clicked it opens the original full size image for a user to download it.
Will adding alt attribute to the thumbnails make the original full size photo appear in google images when searched for? or Google will show the small thumbnail photos? I do intend to achieve the first option.

<div class="thumb">
<a href="images/wallpaper.jpg">
<img src="images/wallpaper-small.jpg">

2 Answers 2


To implement your task, I recommend that you use structured data markup as ImageObject, for example:

<div class="thumb" itemscope itemtype="http://schema.org/ImageObject">
<a href="images/wallpaper.jpg" itemprop="contentUrl">
    <figcaption itemprop="caption">The large image</figcaption>
    <img src="images/wallpaper-small.jpg"itemprop="thumbnail" alt= The thumbnail of large of the same image>

Installing a link without text information about its content is a bad solution. So I added this to your code. You can play with the attributes of this class yourself. Be sure to check your result on the Google tester.

  • Thank you, I will do further research about ImageObject and structured data, because I don't really understand this method at the moment. Thank you.
    – MEGA
    Commented Aug 15, 2017 at 8:07
  • See additionally information about structured data developers.google.com/search/docs/guides/intro-structured-data and developers.google.com/search/docs/guides/prototype
    – user29419
    Commented Aug 15, 2017 at 8:27
  • Thank you, I have implemented this method and it worked. I also added an image sitemap to help the process.
    – MEGA
    Commented Dec 11, 2017 at 11:27
  • @MEGA Excellent.
    – user29419
    Commented Dec 11, 2017 at 11:32

No. The alt tag is just for a textual description of the image. It can be used by screenreaders for visually impaired people or as image metadata by web crawlers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.