W3C home > Mailing lists > Public > www-validator@w3.org > July 2002

Re: illformed document validated

From: Liam Quinn <liam@htmlhelp.com>
Date: Mon, 15 Jul 2002 15:01:11 -0400 (EDT)
To: Karl-Michael Schneider <schneide@phil.uni-passau.de>
cc: Bjoern Hoehrmann <derhoermi@gmx.net>, <www-validator@w3.org>
Message-ID: <Pine.LNX.4.33L2.0207151500360.18454-100000@localhost.localdomain>

On Mon, 15 Jul 2002, Karl-Michael Schneider wrote:

> On Mon, Jul 15, 2002 at 07:26:12PM +0200, Bjoern Hoehrmann wrote:
> > * Karl-Michael Schneider wrote:
> > >Below is a small test document which in my opinion is not valid html but is
> > >validated by the W3C validator at http://validator.w3.org/.
> >
> > ><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> > >      "http://www.w3.org/TR/html4/loose.dtd">
> > ><html>
> > ><head>
> > >  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> > >  <title>Test</title>
> > ></head>
> > >
> > ><p>Test</p>
> > ></body>
> > ></html>
> >
> > The start- and end-tags of the body element are optional, the document
> > is valid.
>
> You mean a single end-tag of the body element without a matching start-tag (as
> in the little document above) is allowed?

Yes.  The body start-tag is implied by the <p> tag.

-- 
Liam Quinn
Received on Monday, 15 July 2002 15:01:12 GMT

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