HTML validity
Crawlers read your title, canonical and robots tags from the HTML head. These checks find markup mistakes that make them miss those tags: elements that end the head early, a second head, tags left unclosed, and HTML too large for Googlebot to read in full.
- Why is Google ignoring my meta tags?Often because something in the
<head>broke it. An element that isn't allowed there, such as an<img>,<iframe>or<div>, ends the head early. Rubric flags it when your title, canonical, hreflang or robots tags come after that break. - Can a page have two head tags?No. A page should have exactly one
<head>and one<body>. When there are two, browsers and crawlers merge them, and tags from the second head often end up in the body, where search engines ignore them. - What happens if you don't close a title tag?Everything after it is read as part of the title. An unclosed
<title>,<script>,<style>,<textarea>or comment swallows the rest of the page, so crawlers can't see the content that follows. - What is Googlebot's HTML size limit?Googlebot reads the first 2 MB of an HTML file, measured uncompressed. Google indexes only what it downloaded, so text, links and markup after that point are invisible to Google.
- Where should the Google Tag Manager noscript code go?Put it just after the opening
<body>tag, not in the head. A<noscript>in the head may only holdlink,metaandstyle. When it holds animgoriframe, as Tag Manager and Facebook pixel fallbacks do, readers that don't run JavaScript end the head there. - Which HTML elements are allowed in the head?The head should hold only
title,meta,link,script,style,base,noscriptandtemplate. Your page has another element there. Nothing important comes after it yet, but Google ignores every head tag that follows an invalid one.