Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 Validation Error: body start tag seen but an element of the same type was already open

Tags:

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?

like image 226
Chris Reedy Avatar asked Feb 14 '12 20:02

Chris Reedy


People also ask

What does start tag body seen but an element of the same type was already open mean?

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.

What is a stray start tag?

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.

What is fatal error in HTML?

A fatal error is any error that causes a program to abort.

What does stray end tag mean?

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.


2 Answers

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

like image 185
Emil H Avatar answered Sep 20 '22 14:09

Emil H


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.

like image 35
TheCarver Avatar answered Sep 22 '22 14:09

TheCarver