Skip to content

Instantly share code, notes, and snippets.

@alexshive
Last active December 20, 2015 13:49
Show Gist options
  • Select an option

  • Save alexshive/6141429 to your computer and use it in GitHub Desktop.

Select an option

Save alexshive/6141429 to your computer and use it in GitHub Desktop.
HTML5 snippet for Sublime Text
<snippet>
<content><![CDATA[
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>${1:title}</title>
</head>
<body>
${2:body}
</body>
</html>
]]></content>
<tabTrigger>html5</tabTrigger>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment