Skip to content

Instantly share code, notes, and snippets.

@hitecherik-gist
Created December 5, 2012 20:13
Show Gist options
  • Save hitecherik-gist/4219099 to your computer and use it in GitHub Desktop.
Save hitecherik-gist/4219099 to your computer and use it in GitHub Desktop.
HTML: Template for HTML5
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Espresso Html Document</title>
<meta name="viewport" content="width=device-width"><!-- To better adapt your page to mobile devices screen -->
<meta name="author" content="Espresso Html">
<meta name="description" content="A simple web page I made to test out my ideas">
<link rel="stylesheet" href="style.css"><!-- You can create and link files within Espresso Html -->
<!-- // IE fixes including html5 enabler // -->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js">IE7_PNG_SUFFIX=".png"></script>
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="ie6.css"> <!-- You need to create this file in order to serve custom rules to old ie6 browsers (if you really really need to :D) -->
<![endif]-->
<style>
/* This is magic: try writing some custom css rules inside the media queries to address specific sreen sizes */
@media screen and (max-width: 768px) {
}
@media screen and (max-width: 480px) {
}
</style>
</head>
<body>
Hello world :)
<script defer src="script.js"></script><!-- You can create a js file and link it to your html doc. "defer" makes your script load last -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment