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

Re: Head section 'not open'

From: Karl Ove Hufthammer <huftis@bigfoot.com>
Date: Wed, 27 Feb 2002 12:47:34 +0100
Message-Id: <Xns91C2822023CAFhuftis@ID-99504.news.dfncis.de>
To: www-validator@w3.org
Paul Wicks <Paul.Wicks@ilt.ac.uk> wrote in

> If I use an xml style empty element in the head section of
> a document, i.e. <link ... /> or <meta ... /> the validator
> appears to interpret this as the end of the head section in
> an HTML 4.01 transitional document.

That's correct. You can't use / to close empty elements in HTML

> Is this a bug in the
> validator,


> or can I not have a document that is both
> compatible with xhtml and html4.01?

No, you can't. Your document must *either* be HTML 4.01 or
XHTML. (But XHTML documents will still work in browsers that
only supports HTML.)

Karl Ove Hufthammer
Received on Wednesday, 27 February 2002 06:48:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:26 UTC