Best Markup for text/html
XHTML sent as text/html can only do what HTML can. Since HTML uses less filesize, it wins.
Analysis
- An XHTML 1.0
DOCTYPEcannot cause browsers to use XML. - A processing instruction cannot do that, either.
- XHTML 1.0 is limited to the elements and attributes of HTML 4.01.
- XHTML is not quite compatible with HTML:
- XHTML 1.0 Appendix C is not normative.
- XHTML 1.1 is just a Working Draft.
- How XHTML 1.1 Customizations work in
text/htmlis undefined.
- XHTML Modularisation 1.1 permits legacy markup. It isn’t ‘more semantic’.
- HTML has good support and widespread use.
- HTML uses less filesize than the equivalent XHTML.
- HTML works well with CSS.
Recommendation
HTML provides the best markup for text/html resources.