The W3C used to state that XHTML 1.1 should be served as MIME type "application/xhtml+xml" and not as "text/html" - ref, the W3C Note: *XHTML Media Types - Summary. Since the issue of the updated Note *XHTML Media Types - Second Edition in January 2009, however, this restriction has been removed and, provided that certain *Compatibility Guidelines are followed, you can now serve XHTML 1.1 documents as "text/html". Excellent! Bear in mind, however, that this W3C Note is still described only as a work in progress. Also, I have to say that I do not myself follow the first of these guidelines since I tend to include the XML declaration even in "text/html" documents - see The XML Declaration and DOCTYPE Sniffing.
If you do serve an XHTML 1.1 document as MIME type "application/xhtml+xml", however, you should bear in mind that some browsers do not support this MIME type, most notably all current versions of Internet Explorer (IE) - that is IE8 and below.
Here at www.webcompliant.co.uk, we used to use content negotiation to serve XHTML 1.1 as "application/xhtml+xml" to browsers which prefer it and
compliant XHTML 1.0 as "text/html" to the rest. Now, however, there is no content negotiation and all pages are
written in HTML-compatible XHTML 1.1 and served as "text/html". This is somewhat against the W3C's guidelines in the above-mentioned
Note (see: *Recommended Media Type Usage) which recommend
that content negotiation be used to serve the document as different MIME types depending upon the user agent's HTTP Accept header.
I have taken a different approach on this site, which allows the user more control over what they receive:
You can, if you wish, receive exactly the same documents served as "application/xhtml+xml" by changing the domain from
www.webcompliant.co.uk to xhtml.webcompliant.co.uk in the URI.
Conversely, if you are currently viewing an xhtml.webcompliant.co.uk URI,
changing the domain to www.webcompliant.co.uk will revert you back to the "text/html" Content-Type.
This seems like an ideal solution for a website such as this, which is aimed at web professionals.