Meta tags
Use meta tags to specify metadata for your site pages. Indexing bots use a number of meta tags to identify the contents and context of pages more accurately. This determined how a page is indexed, ranked, and displayed in search results.
With meta tags, you can provide instructions for bots on how to load and index your site pages.
Meta tags the Yandex indexing bot takes into account
|
Meta tag |
Description |
|
|
Can be used in site page descriptions displayed in search results. Learn more. Example: |
|
|
Can influence the page's relevance to search queries. Example: |
|
|
Defines the rules for loading and indexing site pages. Learn more. Example: |
|
|
Adapts sites for mobile devices. Controls viewport scaling in the browser. Learn moreThe value If the meta tag is omitted, mobile browsers show the page for a computer screen by default. Since the screen width on a mobile device is significantly less than a computer screen, browsers try to optimize the content by increasing the font size, scaling the content to the screen size, or showing only the part of the content that fits on the screen. Example: |
|
|
Defines the type and encoding of a document. Example: |
|
|
Redirects the user to the page with the specified URL after N seconds. For small N values, it's considered a temporary redirect. This is similar to server redirects with the HTTP code 302/303/307. Use this meta tag when moving your site. Example: |
Configuring the rules for loading and indexing pages
You can use one of the following ways to configure your rules with a directive:
- Place the
robotsmeta tag inside theheadelement of the page's HTML code. - Configure the X-Robots-Tag HTTP header for a specific URL on your site's server.
Note
If the page is prohibited in the robots.txt file, the meta tag or header directive does not apply.
Indexing bots take meta tags and headers into account by default. You can specify directives for certain robots.
Directives supported by Yandex
|
Directive |
Description |
Robots meta tag |
X-Robots-Tag header |
|
|
Prohibits indexing the page text. The page won't be included in the search results. |
|
|
|
|
Prohibits following the links on the page. The robot will not follow links when crawling the site, but it can find out about them from other sources. For example, on other pages or sites. |
|
|
|
|
Similar to |
|
|
|
|
Prohibits showing the link to the saved copy on the search results page. |
|
|
|
|
Cancels prohibiting directives. |
|
— |
|
|
Allows search engines to index text and links on the page, similar to |
|
— |
The bot uses allow directives by default, so you can omit them if there are no other directives. Allow directives take priority when combined with prohibiting ones.
Example
<meta name="robots" content="all"/>
<meta name="robots" content="noindex, follow"/>
<!--The indexing bot will choose the “all” value. Text and links will be indexed.-->
<meta name="robots" content="all"/>
<meta name="robots" content="noarchive"/>
<!--Text and links will be indexed, but in the search results there will be no link
to the saved copy of the page.-->
Robots from other search engines and services may interpret the directives in a different way.
Examples of using directives
Specify multiple directives
You can specify multiple directives separated by commas. Example:
<meta name="yandex" content="noindex, nofollow" />
You can pass multiple headers in a single response and a list of comma-separated directives. Example:
HTTP/1.1 200 OK
Date: Tue, 25 May 2010 21:42:43 GMT
X-Robots-Tag: noindex, nofollow
X-Robots-Tag: noarchive
Specify directives for specific indexing bots
You can use the robots meta tag to give a directive to the Yandex robots only. Example:
<meta name="yandex" content="noindex" />
If you list common directives and directives for the Yandex robots, the search engine will take into account all of them. Example:
<meta name="robots" content="noindex" />
<meta name="yandex" content="nofollow" />
The Yandex robot will treat these directives as noindex, nofollow.
Prohibit page indexing
An element that disables page indexing. Example:
<html>
<head>
<meta name="robots" content="noindex" />
</head>
<body>...</body>
</html>
An HTTP response with a header that prohibits indexing the page. Example:
HTTP/1.1 200 OK
Date: Tue, 25 May 2010 21:42:43 GMT
X-Robots-Tag: noindex
Rules for indexing bots that determine how a page will appear in search results.