SearchImagesVideoNewsMapsMail
Login
Ctrl previousnext Ctrl

Which texts does the robot use for image search?

The text for the alt attribute for the img tag

The alt attribute is an alternative source of information for users who have image display disabled in their browser. If the alt attribute has been determined, the attribute text will be displayed when it's not possible to display the image:

Without a set alt attribute, the image will be shown as empty:

A description of images using the alt attribute is especially important for sites whose content consists predominantly of images.

You can set the alt attribute in the following way:

<img border="0" alt="[alternative text]" src="risunok.jpg"
width="[image width]" height="[image height]">

Not all of the site's or page's keyword phrases should be written in the alt attribute, only the ones that really describe the image. This will help the robot to more accurately find an image, while also helping a Yandex user to select it in search results and go to your site.

The text for the title attribute for the img tag

The title attribute presents additional information about the image. The text included in this attribute appears when hovering your mouse over the image:

You can set the title attribute like this:

<img border="0" alt="[alternative text]" title="[hint text]" src="risunok.jpg"
width="[image width]" height="[image height]">

If the image is a link, then it's better to show the title attribute in the link:

<a href="link.html" title="[hint text]"><img border="0" alt="[alternative text]" 
src="risunok.jpg" width="[image width]" height="[image height]"></a>

Other texts

The following texts are used when searching for images in addition to the alt and title attribute values:

  • link texts on images from other pages and other sites;

  • the text next to the image is located on the page on direct proximity to the image;

  • the texts and headers of short documents that frame a lone image;

  • the name of files or image scripts, including transliterated and simplified word-for-word translation.

Keyboard