Last active
October 11, 2015 18:37
-
-
Save captbrogers/3901717 to your computer and use it in GitHub Desktop.
Basics needed for a good HTLM5 page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- force older versions of IE (<= IE 9) to use JavaScript shiv for HTML5 tags --> | |
<!--[if lte IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> | |
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<!-- helps with tablets or phones viewing the site --> | |
<meta name="viewport" content="width=device-width"> | |
<title></title> | |
<!-- your CSS here --> | |
<!-- end your CSS --> | |
<!--[if lt IE 9]> | |
<link rel="stylesheet" href="assets/css/shame.css"> | |
<![endif]--> | |
<!-- analytics code here --> | |
<!-- end analytics --> | |
</head> | |
<body> | |
<div id="page-container"> | |
<header id="page-header"> | |
</header> | |
<div id="main-content"> | |
</div> | |
<footer id="page-footer"> | |
</footer> | |
</div> | |
<!-- js files --> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> | |
<script> | |
// test to see if jQuery loaded from Google's CDN, if it fails then load a local copy | |
if (!window.jQuery) { document.write('<script src="assets/js/libs/jquery-2.0.0.min.js">\x3C/script>'); } | |
</script> | |
<!-- your JS here --> | |
</body> | |
</html> | |
<!-- end of line --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment