Skip to content

Instantly share code, notes, and snippets.

@ricardozea
Last active December 17, 2015 01:12
Show Gist options
  • Save ricardozea/4155405 to your computer and use it in GitHub Desktop.
Save ricardozea/4155405 to your computer and use it in GitHub Desktop.
Sublime Text 2 Snippet: HTML5 (Basic)
<snippet>
<content><![CDATA[
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js ie8" lang="en"> <![endif]-->
<!--[if IE 9]> <html class="no-js ie9" lang="en"> <![endif]-->
<!--[if gt IE 9]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>${1:title}</title>
<!-- [if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif] -->
</head>
<body>
<main class="main-container">
${2:content}
</main>
</body>
</html>
]]></content>
<tabTrigger>html5b</tabTrigger>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment