Answer the question
In order to leave comments, you need to log in
Where to add the data-src attribute?
Yandex writes the following in the documentation
For images from the site to be included in the Yandex.Images search, the pages of the site must be indexed. Image information is retrieved from indexed pages.
Images are downloaded using links from the src attribute of the img tag, as well as the data-src and data-original attributes (in this case, the presence of a link to the image in the src attribute is not necessary).
<a href="/files/products/DSC03515.800x600w.JPG" class="zoom" data-rel="group">
<img src="/files/products/DSC03515.200x200.JPG" alt="часы">
</a>
<a href="/files/products/DSC03515.800x600w.JPG" class="zoom" data-rel="group">
<img data-src="/files/products/DSC03515.800x600w.JPG" src="/files/products/DSC03515.200x200.JPG" alt="часы">
</a>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question