Re: wrong validation (missing </body>)

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 UTC