Posted By

andyr on 03/05/11


Tagged


Versions (?)

HTML Boilerplate


 / Published in: HTML
 

  1. <!doctype html>
  2.  
  3. <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
  4. <!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
  5. <!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
  6. <!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
  7. <!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
  8. <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
  9. <meta charset="utf-8">
  10.  
  11. <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
  12. Remove this if you use the .htaccess -->
  13. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  14.  
  15. <meta name="description" content="">
  16. <meta name="author" content="">
  17.  
  18. <!-- Mobile viewport optimized: j.mp/bplateviewport -->
  19. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  20.  
  21. <!-- Place favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
  22. <link rel="shortcut icon" href="/favicon.ico">
  23. <link rel="apple-touch-icon" href="/apple-touch-icon.png">
  24.  
  25.  
  26. <!-- CSS : implied media="all" -->
  27. <link rel="stylesheet" href="css/style.css?v=2">
  28.  
  29. <!-- Uncomment if you are specifically targeting less enabled mobile browsers
  30. <link rel="stylesheet" media="handheld" href="css/handheld.css?v=2"> -->
  31.  
  32. <!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
  33. <script src="js/libs/modernizr-1.6.min.js"></script>
  34.  
  35. </head>
  36.  
  37.  
  38. <div id="container">
  39. <header>
  40.  
  41. </header>
  42.  
  43. <div id="main">
  44.  
  45. </div>
  46.  
  47. <footer>
  48.  
  49. </footer>
  50. </div> <!--! end of #container -->
  51.  
  52.  
  53. <!-- Javascript at the bottom for fast page loading -->
  54.  
  55. <!-- Grab Google CDN's jQuery. fall back to local if necessary -->
  56. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
  57. <script>!window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.4.2.js"%3E%3C/script%3E'))</script>
  58.  
  59.  
  60. <!-- scripts concatenated and minified via ant build script-->
  61. <script src="js/plugins.js"></script>
  62. <script src="js/script.js"></script>
  63. <!-- end concatenated and minified scripts-->
  64.  
  65.  
  66. <!--[if lt IE 7 ]>
  67. <script src="js/libs/dd_belatedpng.js"></script>
  68. <script> DD_belatedPNG.fix('img, .png_bg'); //fix any <img> or .png_bg background-images </script>
  69. <![endif]-->
  70.  
  71. <!-- yui profiler and profileviewer - remove for production -->
  72. <script src="js/profiling/yahoo-profiling.min.js"></script>
  73. <script src="js/profiling/config.js"></script>
  74. <!-- end profiling code -->
  75.  
  76.  
  77. <!-- asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
  78. change the UA-XXXXX-X to be your site's ID -->
  79. var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview']];
  80. (function(d, t) {
  81. var g = d.createElement(t),
  82. s = d.getElementsByTagName(t)[0];
  83. g.async = true;
  84. g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  85. s.parentNode.insertBefore(g, s);
  86. })(document, 'script');
  87. </script>
  88.  
  89. </body>
  90. </html>

Report this snippet  

You need to login to post a comment.