HTML validation · Document structure

Multiple head elements

A second head element appears after the first has closed, so browsers ignore its tags and push its contents into the first head.

How this page is built

After the first head element closes, the source of this page contains a second <head> with a meta author tag inside it.

Browsers ignore the second head tags and move the meta tag into the first head.

Why it matters

A page can only have one head. A second head is an error, and while browsers rescue simple cases like this one, other tools may not read the tags inside it.

If the second head contains important tags, such as a canonical or meta robots, they might be ignored by some search engines or tools while being used by others.

How to check it

View the source and search for the head start tag. More than one match means there is a problem. The W3C Nu HTML Checker reports the stray tags.

How to fix it

Move everything into a single head element and remove the extra head tags. Duplicate heads often come from plugins or includes that output a whole document fragment.

Back to all tests