W3C home > Mailing lists > Public > www-validator@w3.org > November 2009

Re: wrong validation (missing </body>)

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Wed, 18 Nov 2009 19:37:50 +0200
Message-ID: <6ABB9A8DFD5849A2A49E610C5340C482@JukanPC>
To: "Klemens Mantzos" <klemens.mantzos@strg.at>, <www-validator@w3.org>
Klemens Mantzos wrote:

> here is the </body> tag missing, but according to the w3c markup
> validator its valid html (if i add the </body> tag its still valid
> ;)):
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>  "http://www.w3.org/TR/html4/loose.dtd">

If you look at the DTD, you will see that it defines the </body> tag as 
optional:

<!ELEMENT BODY O O (%flow;)* +(INS|DEL) -- document body -->

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/ 
Received on Wednesday, 18 November 2009 17:39:36 GMT

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