Skip to content

Instantly share code, notes, and snippets.

@matherton
Last active January 4, 2016 02:39
Show Gist options
  • Save matherton/8556831 to your computer and use it in GitHub Desktop.
Save matherton/8556831 to your computer and use it in GitHub Desktop.
Basic HTML5 page template
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- The page title that is displayed in the top of the browser -->
<title>The HTML5 Herald</title>
<!-- Meta content describes your page and is indexed by search engines such as Google -->
<meta name="description" content="The HTML5 BASE template">
<meta name="author" content="Mark Atherton">
<!-- meta viewport ensures content is full screen width on mobile devises -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- link to external Cascading Style Sheet -->
<link rel="stylesheet" href="css/styles.css?v=1.0">
<!-- NOTE: Very important when using HTML5 so that older versions of IE use Remy Sharps HTML5 shim so that IE versions prior to version 9 render HTML5 elements correctly. This conditional comment is telling the browser that the enclosed markup should only appear to users viewing the page with Internet Explorer prior to version 9:-->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<!-- Opening body tag this where all your page content goes -->
<body>
<!-- Link to external JavaScript file -->
<script src="js/scripts.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment