I'm checking my (HTML5) site using W3C's validator and getting the following error:
Stray end tag html.
<html lang="en-US">
And the error sign is on the closing ">" there. What is wrong with that line? It seems to be exactly right.
An end tag </code> has been found violating nesting rules. Check other errors in the same document related to the <code> element, and fix the unallowed nested elements. And end tag has been found that does not match the current open element. Check the context to fix the start and end tags.
As such, “Stray end tag...” means just that an end tag is not allowed in the context where it appears. As the validator's explanation says: “The Validator found an end tag for the above element, but that element is not currently open.
An opening <body> tag has been found in an incorrect place. Check that it appears only once in the document, right after the closing </head> tag, and that the whole document content is contained within <body> and </body> tags.
this is the minimum html that validates as html5 (except for the lang="en-US"
)
<!DOCTYPE html>
<html lang="en-US">
<head>
<title></title>
</head>
<body>
</body>
</html>
You should have at least this structure
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With