====== HTTP Header Manipulation ====== ===== Content Types ===== XHTML content should be served by the MIME type: ''application/xhtml+xml'' but many browsers will only recognize the standard MIME type: ''text/html'' Web standards recommend that 1.0 versions of XHTML can be served by the ''text/html'' type, but 1.1 versions can not. Currently, very few sites can assume that the ''application/xml'' type will be universally accepted. The simple solution is to implement doctype switching, based on the browsers ''HTTP_ACCEPT'' properties: '); } else { header("Content-Type: text/html; charset=UTF-8"); echo (''); } ?> Mozilla treats the ''application/xml'' content type as an XML application, and will fail if the markup is not well formed.