S
S
sintezenish2016-08-18 18:05:30
HTML
sintezenish, 2016-08-18 18:05:30

Correct code for Yandex image index?

Good afternoon. In the near future I plan to roll out a site on which there will be a lot of unique photo material. The task is to make it correct (in terms of code) for Yandex pictures.
I read the instructions from Yandex and realized that there are 2 basic rules
1. If the picture is a link, then it is better to indicate the title in the link:

<a href="link.html" title="[текст подсказки]"><img border="0" alt="[альтернативный текст]" 
src="risunok.jpg" width="[ширина картинки]" height="[высота картинки]"></a>

2. Background images and pictures that are opened using a script are not indexed.
Example of my code:
<div><figure class="uk-overlay uk-overlay-hover">
<a class="jbimage-link jbimage-gallery full_233_905b34d7-6211-4c38-9a43-e9959b7a9be9"
title="Наша фотография самая крутая" href="http://ссылка_на_фулл_сайз_фото.jpg" 
rel="jbimage-gallery-233" target="_blank" id="jbimage-link-57b5c713cdd94" data-size="1200x801">
<img class="jbimage full_233_905b34d7-6211-4c38-9a43-e9959b7a9be9" 
alt="Тут вы видите нашу фотографию" title="Наша фотография самая крутая" 
src="http://ссылка_на_привью_фотографии_.jpg" width="190" height="130" data-template="popup" />
</a><div class="uk-overlay-panel uk-overlay-icon uk-overlay-background uk-overlay-fade">
</div>

In connection with this question. Is the code written correctly under these 2 rules, if not, how to do it, let's say "with little bloodshed" so that not everything is from scratch.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zooks, 2016-08-18
@zooks

Написано же, что для картинки title не нужен, если он есть у тега <a>.

Андрей Верх, 2016-08-18
@sadisme

Не знаю как там Яндекс рекомендует, но даже при наличии ссылки, я бы описание оставлял у самого IMG. Это более логично и функционально(если картинка не загрузится).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question