Re: HTML or XHTML - why do you use it?

> Of course.  But I think XHTML has more (most of the time helpful)
> constraints to ensure more consistent content, and I guess that's what I
> meant by _more_ strictly validate a document.

It also has some constraints that are not enforceable by XML validators but
are enforced by HTML SGML validators.  This is because of limitations in
the XML content models.

Also, as I pointed out before, if you take an HTML document with
omitted start and end tags and run it through sgmlnorm (from the SP
tools used by the W3C validator), you get out a document with omitted
tags made explicit.  If this displays correctly on your favourite tag
soup browser, you can use it instead of the original document.  If it
doesn't, the browser is broken, but the output version should still be
more predictable.

Received on Tuesday, 7 January 2003 02:49:50 UTC