HTML: text/html , full stop.
XHTML: application/xhtml+xml , or only if you follow the recommendations for compatibility with HTML, text/html . See W3 Media Note .
XML: text/xml , application/xml ( RFC 2376 ).
There are also many other types of XML-based media, such as application/rss+xml or image/svg+xml . It is a safe bet that any unrecognized but registered termination in +xml is XML based. See the IANA list for registered media types ending in +xml .
(For unregistered types x- all bets are disabled, but you hope that +xml will be respected.)
bobince Jun 03 '10 at 12:01 2010-06-03 12:01
source share