I use HTML 4.01 Strict for my personal projects. Gives me no worries about sending as application/xhtml+xml
, it has full backward compatibility and it gives me those technical limits I want. I'm still a standards-geek, so my code is still clean even though the ML used doesn't require it (that much) from me.
To me, XHTML seems to have failed slightly. The next most-widely-used-standard in a few years time will probably be HTML5, since the entire XHTML2-project seems to have fallen behind.
I'm not saying it's bad to use it now, though. It's just so incredibly seldom you actually have an advantage by using XHTML instead of HTML. How many webpages based on XHTML today is doing it 100% correctly? Mostly they fail on the mime-type. text/html
is allowed due to browser compatibility, but it's still wrong if you look at the entire reason XHTML exists. And how many does actually NEED the functionality XHTML brings?
I guess there are some, but the vast majority of XHTML-based webpages could just swap their doctype to a HTML 4.01 one and function just as well.
So until i can use XHTML (2?) the way it is supposed to (correct MIME-type basically) on all browsers, I just see no reason to use it over HTML 4.01 unless my application specifically needs the XML-integration. Even then I'd probably consider just doing all those modifications server-side, and go with HTML in the template.