Title: Validation error: document type does not allow element &#8220;body&#8221; here
Last modified: August 18, 2016

---

# Validation error: document type does not allow element “body” here

 *  Resolved [wickensworth](https://wordpress.org/support/users/wickensworth/)
 * (@wickensworth)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/validation-error-document-type-does-not-allow-element-body-here/)
 * I’m trying to go through my validation report, but am feeling kind of overwhelmed.
   Here’s the report:
    [http://validator.w3.org/check?uri=http://ekarj.com/](http://validator.w3.org/check?uri=http://ekarj.com/)
 * The most crucial error seems to be **document type does not allow element “body”
   here**. I tried interpreting this in English, and I search around on Google, 
   but to no avail. Anybody have an pointers?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [wickensworth](https://wordpress.org/support/users/wickensworth/)
 * (@wickensworth)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/validation-error-document-type-does-not-allow-element-body-here/#post-605396)
 * Here is the offending error:
 * <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
    “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt);
   <html xmlns=”[http://www.w3.org/1999/xhtml&#8221](http://www.w3.org/1999/xhtml&#8221);
   xml:lang=”en” lang=”en”>
 * **<body>**
    <?php get_header(); ?>
 * <div id=”wrapper”>
 *  Thread Starter [wickensworth](https://wordpress.org/support/users/wickensworth/)
 * (@wickensworth)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/validation-error-document-type-does-not-allow-element-body-here/#post-605409)
 * Fixed it. Seems like the <body> tag needed to be somewhere in the header. I just
   fixed that and like 60 other errors after about six hours of confused labor, 
   but I now have a valid XHTML page. Hurray!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Validation error: document type does not allow element “body” here’ is
closed to new replies.

## Tags

 * [Validation error](https://wordpress.org/support/topic-tag/validation-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [wickensworth](https://wordpress.org/support/users/wickensworth/)
 * Last activity: [18 years, 10 months ago](https://wordpress.org/support/topic/validation-error-document-type-does-not-allow-element-body-here/#post-605409)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
