Re: Head section 'not open'

Paul Wicks <> 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