x
Search Posts:
BLOG POST #58 SHOW ALL

XHTML5 [php] BOILERPLATE

References:
http://blog.whatwg.org/xhtml5-in-a-nutshell
http://www.whatwg.org/specs/web-apps/current-work/multipage/index.html

Code:
----------
<?php header('Content-Type:application/xhtml+xml'); ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" dir="ltr">
<head>
<title></title>
<meta charset="utf-8" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<script type="text/javascript">
//<![CDATA[

//]]>
</script>
</head>
<body>
</body>
</html>
----------

To add semantics use microdata:
http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html#microdata