I was hoping that someone may know how to resolve this HTML5 validation error. When I try to validate my page: http://blog.genesispetaluma.com using http://validator.w3.org, it gives me the following error code:
Error Line 90, Column 63: An body start tag seen but an element of the same type was already open.
<body class="home blog single-author two-column right-sidebar">
I interpreted this error to mean that I have two body tags in the code. However, I have searched everywhere and can only find one <body>
(the one referenced by the error) and one </body>
. Can anyone please tell me how to resolve this error?
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.
A stray start tag <html> has been found in the document. As this tag defines the start of the whole HTML document, it should appear only once.
A fatal error is any error that causes a program to abort.
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.
Possibly it's because:
<div id="wrapFix"> <div id="drawLogo1"> <div id="drawLogo2"> <img src="http://genesispetaluma.com/img/logoNew.png" alt="Genesis Fitness G stylelogo"> </div> </div> <!-- end of drawLogo1 -->
Is between your closing head tag and opening body tag. I.e. lines 81-87
I had a similar problem but with <head>
, giving the following W3C markup error:
A head start tag seen but an element of the same type was already open
I had this code:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <head>
When it was supposed to be:
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
I knew that was wrong but it's hard to spot sometimes, as you're just so used to the header code being correct 99% of the time. I obviously cut n pasted some code and that ended up in the wrong place.
This isn't specific to your question, I know, as your error relates to the <body>
tag, but this is the kind of thing you're looking for. Maybe you have a <link>
or <meta>
tag in your body somewhere, that's meant to be in the <head>
. Without seeing your code, it's hard to give you a perfect answer.
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