HTML & encoding

Invalid element in <head> discards later metadata

One of the 136 checks Lala SEO runs on every page of a site in a free audit.

How serious
Serious. Can stop pages from appearing in Google, or from working for visitors. Fix these first.
Based on
Google's own documentation

What is wrong

Your page's head section—the invisible part of your HTML that contains instructions for search engines—has a broken tag that stops Google reading the rest of it. When Google encounters invalid code like an unclosed tag or malformed attribute, it stops processing and discards all the metadata (page title, description, canonical link) that comes after the error.

Why it costs you

This means Google may not see your actual page title or understand what your page is about. It may index a stale version, show the wrong snippet in search results, or treat duplicate pages as separate instead of recognising the canonical version. Visitors clicking through may land on the wrong page or see poor search result previews that don't match what they expected.

How to fix it

Find and fix the broken HTML tag in your page's head section. Use your browser's developer tools (right-click, select Inspect, look at the head tab) to spot unclosed tags, mismatched quotes, or malformed attributes. Common culprits are meta tags missing a closing slash, script tags with broken src attributes, or link tags with unquoted href values. Once you identify the error, close the tag properly or remove it entirely. If this error appears in your site template, fix it once in the template file so all pages inherit the correction.

What the audit tests

  • No invalid tag in the page head cuts off the canonical tag
  • No invalid tag in the page head cuts off the hreflang (language) tags
  • No invalid tag in the page head cuts off the robots meta tag
  • No invalid tag in the page head cuts off the meta description

Check your site

Run a free audit of up to 300 pages. No card needed.

Start a free audit

Other html & encoding checks

All 136 checks