Skip to content

Instantly share code, notes, and snippets.

@m93a
Created December 4, 2014 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m93a/59d4e5d4f11c88dc939a to your computer and use it in GitHub Desktop.
Save m93a/59d4e5d4f11c88dc939a to your computer and use it in GitHub Desktop.
HTML6 default namespace - shorter and backwards compatibile
<!--
- Very often, solution of the problem that
- bothers us is in fact very simple and
- already used in XML.
- ~~m93a
-->
<!-- typical html6 -->
<!doctype foo>
<html:html>
<html:head>
<html:meta charset=utf-8 />
</html:head>
<html:body>
<bar>It works!</bar>
</html:body>
</html:html>
<!-- backwards compatibile -->
<!doctype html>
<html>
<head>
<meta charset=utf-8 />
</head>
<body>
<foo:bar>It works!</foo:bar>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment