Conventional wisdom has come sort of full circle on this point. Back in like 2002 everyone was gung-ho for XHTML but many people (including myself) didn't have good reasons why. It was just the cool new thing and everyone jumped on the bandwagon, started putting XHTML in their resume skills instead of just HTML which looked so plain and unimpressive.
What's happening now is, with HTML5 finished, people are starting to realize that there's nothing wrong with good old fashioned HTML. It's the language of the web. Here's the pros and cons of XHTML as I see them:
Pro
- Allows you to embed non-xhtml XML into your web page, such as an SVG element. This isn't possible with plain HTML.
- Allows you to easily parse your documents with an XML parser, which could obviate the need for hpricot or BeautifulSoup if say, you wanted to replace all H1 tags with H2 tags in your website templates.
Con
- IE doesn't understand the 'application/xhtml+xml' mime type, so as far as it's concerned you're sending malformed HTML.
- It's a little more verbose.
<br>
and <table cellspacing=0 cellpadding=0>
is neater looking, in my opinion, than <br />
and <table cellspacing="0" cellpadding="0">
.
There must be some advantages to XHTML that I'm missing, but I myself use HTML for everything these days.