HTML validation · Document structure

Missing head element

The page has no head tags. Browsers add a head automatically, but some tools may not find the title, canonical or meta tags.

How this page is built

The source of this page has no <head> or </head> tags. The title, meta tags and stylesheet still come before any visible content, so browsers place them in a head that they create automatically.

Why it matters

HTML allows the head tags to be left out, and browsers create the element automatically. The page in this test works normally.

Tools that read the source directly may look for a head element to find the title, meta robots or canonical. Without one, they may report those tags as missing even though browsers can see them.

How to check it

View the source and search for the opening head tag. Crawl tools that check document structure report a missing head. Browser developer tools show the head that the browser created and which tags it contains.

How to fix it

Add explicit head tags to the layout and keep every metadata tag inside them. That makes the structure clear to every tool and protects against tags drifting into the body.

Back to all tests