HTML or XHTML: Does It Really Matter?
sitepoint.com
sitepoint.com
Yes that is the idea: Force developers to write valid code.
Also XHTML doesn't allow tons of useful things.
And what useful things does XHTML not allow (which HTML allow)?
document.write() and document.writeln() cannot be used in XHTML, they can in HTML.
In XHTML, the use of the innerHTML property requires that the string be a well-formed fragment of XML.
Also as far as I remember there are odd things with iframes etc.
Also the fact that HTML: <input type=checkbox checked>
becomes <input type="checkbox" checked="checked"/>
can add quite a bit of unnecessary bloat to a page.
This is where I have a problem. In my experience, one can either have a format designed for computers or humans. XML is badly designed for both. Humans don't like it for its unnecessary strictness (unnecessary because SGML can be parsed in a decidable fashion) and computers don't like it because of all the extraneous characters. Where does that leave XML?