WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Validation error: document type does not allow element “body” here

[Resolved] Validation error: document type does not allow element “body” here

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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”>
    <html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>

    <body>
    <?php get_header(); ?>

    <div id=”wrapper”>

    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 ‘[Resolved] Validation error: document type does not allow element “body” here’ is closed to new replies.