Skip to content

Instantly share code, notes, and snippets.

@nikoheikkila
Created March 6, 2012 21:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikoheikkila/1989189 to your computer and use it in GitHub Desktop.
Save nikoheikkila/1989189 to your computer and use it in GitHub Desktop.
HTML5: Basic Template
<!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>
<!-- Headers and title text -->
<meta charset="utf-8">
<title>
<!-- Site title -->
</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<!-- CSS -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<h1>
<!-- Site banner -->
</h1>
<nav role="navigation">
<!-- Navigation bar -->
</nav>
</header>
<div role="main">
<!-- Main content (dynamic or static) -->
</div>
<aside role="complementary">
<!-- Sidebar (dynamic or static) -->
</aside>
<footer>
<!-- Footer content (dynamic or static) -->
</footer>
<!-- Load JS files -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!-- Google analytics, replace parameter UA-XXXXX-X with your own. -->
<script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment