W3C home > Mailing lists > Public > www-validator@w3.org > February 2005

Re: body tag problem

From: Liam Quinn <liam@htmlhelp.com>
Date: Thu, 10 Feb 2005 21:46:01 -0500 (EST)
To: tedd <tedd@sperling.com>
cc: www-validator@w3.org
Message-ID: <Pine.LNX.4.44.0502102144140.2898-100000@localhost.localdomain>

On Thu, 10 Feb 2005, tedd wrote:

> One can create a page that does not have an open <body> tag, but does 
> have a close </body> tag and the page will validate. I assume that 
> this is a bug.

No.  The <body> and </body> tags are both optional in HTML.

http://www.w3.org/TR/html4/struct/global.html#edef-BODY

"The BODY element"
...
"Start tag: optional, End tag: optional"

-- 
Liam Quinn
Received on Friday, 11 February 2005 02:43:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:18 GMT