How to fix: End tag for "head" which is not finished

Most Likely Cause and Fix


The <head> section of your markup is lacking a <title> element.



instead of:



Your markup contains a <head> element which contains invalid markup.

Check for incorrectly-closed elements within the <head>, such as self-closing elements that should not be, incorrectly-encoded ampersands or script or style elements lacking the type attribute.

What This Error Means

This error is telling you that the validator reached the end of a <head> element and found that this element did not contain what is expected.

This can happen if you inadvertently include an empty element which should contain child elements or if the markup within the element is not valid.

How To Fix It

For the head of your document

In general

There is no straightforward common fix for this type of error as it depends on the element that raised the error and the context in which this element appears in your markup.

Refer to the line and column number in the specific error you encountered to get some context on the cause of this error.

Check that you haven't included an element and omitted required child elements, such as including a list that lacks list items.

Check that the markup within the relevant element is valid. You may find that the relevant element contains additional elements that are not correctly nested or are not included within required containing elements.

Discuss, Comment and Improve

Did this help you? Can this page be improved? Let us know!

comments powered by Disqus