Skip to content

Instantly share code, notes, and snippets.

@omniosi
Created June 19, 2012 21:53
Show Gist options
  • Save omniosi/2956758 to your computer and use it in GitHub Desktop.
Save omniosi/2956758 to your computer and use it in GitHub Desktop.
an HTML5 skeleton page with HTML5shiv, jQuery and fallback, and normalise styling
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8">
<title>GREYnyc boilerplate</title>
<link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen"> <!-- Cross browser styling standardization -->
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen"> <!-- Custom styling for this page -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <!-- Cloud hosted jQuery code -->
<script type="text/javascript">window.jQuery || document.write('<script type="text/javascript" src="path/to/your/jquery"><\/script>')</script> <!-- Local jQuery file fallback -->
<script src="js/script.js" charset="utf-8"></script> <!-- Custom scripts for this page -->
<!-- Cloud based script to make IE render HTML5 elements -->
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment