XHTML5 Setup

Your browser’s Accept header was “*/*

This page’s MIME type is “text/html

<?php if ( array_key_exists("HTTP_ACCEPT", $_SERVER) && (stristr($_SERVER["HTTP_ACCEPT"], "application/xhtml") || stristr($_SERVER["HTTP_ACCEPT"], "application/xml") ) || (array_key_exists("HTTP_USER_AGENT", $_SERVER) && stristr($_SERVER["HTTP_USER_AGENT"], "W3C_Validator")) ) { header("Content-type: application/xhtml+xml"); echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" . "<!DOCTYPE html>\n" . "<html xmlns='http://www.w3.org/1999/xhtml'>\n"; } else { header("Content-type: text/html; charset=utf-8"); echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\"" . "\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n" . "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n"; } ?>