Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
HTML5 Snippet for Sublime Text 2
<snippet>
<content><![CDATA[
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[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 charset=utf-8>
<title>${1:title}</title>
<!--[if lt IE 9]> HTML5Shiv
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
${2:body}
</body>
</html>
]]></content>
<tabTrigger>html5</tabTrigger>
</snippet>
@colorsynthetic

This comment has been minimized.

Show comment Hide comment
@colorsynthetic

colorsynthetic Mar 24, 2013

Thanks, great snippet.

Thanks, great snippet.

@tylshe

This comment has been minimized.

Show comment Hide comment
@tylshe

tylshe May 31, 2013

It's cool, thanks

tylshe commented May 31, 2013

It's cool, thanks

@rvanbaalen

This comment has been minimized.

Show comment Hide comment
@rvanbaalen

rvanbaalen Jul 19, 2013

Why both

<meta charset="utf-8">

and

<meta charset=utf-8>

?

Why both

<meta charset="utf-8">

and

<meta charset=utf-8>

?

@skopp

This comment has been minimized.

Show comment Hide comment
@skopp

skopp Jul 26, 2013

https://gist.github.com/lucasmezencio/2788630/#comment-866731 - true. looks like a mistake (as one hasn't been enclosed with "__" and I assume that's the wrong one.

skopp commented Jul 26, 2013

https://gist.github.com/lucasmezencio/2788630/#comment-866731 - true. looks like a mistake (as one hasn't been enclosed with "__" and I assume that's the wrong one.

@miguelcano9

This comment has been minimized.

Show comment Hide comment
@miguelcano9

miguelcano9 Sep 15, 2013

great snippet.

great snippet.

@harpreetsingh888

This comment has been minimized.

Show comment Hide comment
@harpreetsingh888

harpreetsingh888 Feb 7, 2014

Thanks

Thanks

@kazitanvirahsan

This comment has been minimized.

Show comment Hide comment
@kazitanvirahsan

kazitanvirahsan Apr 18, 2014

Just a trivial issue with one of the lines as mentioned by others. Rather than this it's useful.

Just a trivial issue with one of the lines as mentioned by others. Rather than this it's useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment