Indexability · Robots directives

Meta robots outside the head

The meta robots tag is in the body and may be ignored, or honoured unpredictably.

How this page is built

The head of this page has no meta robots tag. A <meta name="robots" content="noindex"> tag has been placed in the body, directly after this paragraph. It is left out of the XML sitemap in case a crawler honours it.

Why it matters

Robots directives belong in the head of the page. Google has said it may still honour a robots meta tag in the body, but other search engines and tools may not.

The behaviour is unpredictable: a page might be indexed by one crawler and hidden by another, and it often means the head was closed early by an invalid element.

How to check it

Open the browser’s developer tools and look at the parsed document to see whether the robots tag is in the head or the body. The W3C Nu HTML Checker reports meta elements that are not allowed in the body, and elements in the head that close it too early.

How to fix it

Move the meta robots tag into the head.

Validate the page with the W3C checker to find any element that closes the head early, and keep injected markup such as tracking pixels out of the head where it is not allowed.

Back to all tests