PILLAR 2, TOPICAL CONTENT · 2.1 Title & metaHighInferred

Invalid elements closing <head> early

A stray or invalid element in the head can make the browser close the head early, dropping any tags after it, title, canonical, meta, into the body where they may be ignored.

What it is

Stray tags terminate the head prematurely.

Why it matters

Directives/canonicals after the break are ignored.

How to fix it

Keep only valid head elements before content.

How to find it on your site

  1. View source and check that all head tags are valid head elements.
  2. Look for stray text, unclosed tags or body-only elements inside the head.
  3. Validate the HTML to catch a prematurely closed head.
  4. Fix the offending markup so the head stays intact.

Cross-reference to ranking and citation factors

If the head closes early, important tags after it can be ignored, which silently undermines titles, canonicals and meta. Valid head markup protects them all.

Impact

Medium-high; silent failures. Inferred.

Evidence

Head directives must be within a valid head. Google Search Central, Robots Meta Tags Specifications; Google Search Central, Consolidate duplicate URLs (canonicalization)