..oO(
[email protected])
It is obvious that logic fails in discussing this one somehow.
I meant a text/html document starting
with the XHTML doctype declaration.
Then it is no real XHTML, but pseudo-XHTML written in an HTML-compatible
way, declared and served as HTML for being handled and rendered as HTML
by an HTML tag soup parser. Pretty pointless IMHO.
I think it is better to use XHTML than HTML because
- it is better for mark-up validation tools,
HTML and CSS validators work better for XHTML,
CSS has nothing to do with the markup. Additionally for XHTML you need a
special schema validator, not an SGML-based one like the W3 validator.
they follow more consistent rules than for HTML.
XML enforces a stricter syntax, but you can use the same strictness in
HTML (lower-case tag names, always quoted attributes, well-formedness,
no optional tags etc.)
The same probably goes for parsers of search engines,
and for some web accessibility tools.
- XHTML is needed for example when using Google Maps with polylines.
Why change to XHTML from HTML if deciding later to include
things which need XHTML, when it is easier to start with the XHTML
mark-up.
* Real XHTML doesn't work in IE.
* It's pretty easy to switch from clean HTML to XHTML if it should ever
become necessary (can be done almost automatically).
* If there will ever be an XHTML 2.0, it will _not_ be backwards-
compatible with the current XHTML standards, hence XHTML 1.0 and 1.1
can be seen as a dead end road.
* They're working on HTML 5 already ...
Micha