Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A professional front-end template for building fast, robust, and adaptable web apps or sites.
Pull request Compare This branch is 1 commit ahead, 214 commits behind h5bp:master.
Failed to load latest commit information.
css Add vertical centering for `svg`
doc Fix typo in header of doc/ (promt → prompt)
img git ignore files do not need to ignore ignoring themselves
js Updating jQuery to 1.10.2.
.gitignore Clean up .gitignore
.htaccess Add version & license info in .htaccess / main.css
404.html Redesign 404 page Add vertical centering for `svg` Update Add MIT license Add note about legacy browser support in v4
apple-touch-icon-precomposed.png Use one apple-touch-icon instead of six
crossdomain.xml Remove superfluous code comments
favicon.ico HiDPI (32x32px) favicon.ico
humans.txt Mention Normalize.css in humans.txt
index.html Fix comment in index.html about apple-touch-icons
robots.txt Remove superfluous code comments

HTML5 Boilerplate

HTML5 Boilerplate is a professional front-end template for building fast, robust, and adaptable web apps or sites.

This project is the product of many years of iterative development and combined community knowledge. It does not impose a specific development philosophy or framework, so you're free to architect your code in the way that you want.

Quick start

Choose one of the following options:

  1. Download the latest stable release from or a custom build from Initializr.
  2. Clone the git repo — git clone - and checkout the tagged release you'd like to use.


  • HTML5 ready. Use the new elements with confidence.
  • Cross-browser compatible (Chrome, Firefox, IE8+, Opera, Safari).
  • Designed with progressive enhancement in mind.
  • Includes Normalize.css for CSS normalizations and common bug fixes.
  • The latest jQuery via CDN, with a local fallback.
  • The latest Modernizr build for feature detection.
  • IE-specific classes for easier cross-browser control.
  • Placeholder CSS Media Queries.
  • Useful CSS helpers.
  • Default print CSS, performance optimized.
  • Protection against any stray console.log causing JavaScript errors in older browsers.
  • An optimized Google Analytics snippet.
  • Apache server caching, compression, and other configuration defaults for Grade-A performance.
  • Cross-domain Ajax and Flash.
  • "Delete-key friendly." Easy to strip out parts you don't need.
  • Extensive inline and accompanying documentation.

HTML5 Boilerplate v4 provides legacy browser support (IE 6+, Firefox 3.6+, Safari 4+), but is no longer actively developed.


Take a look at the documentation table of contents. This documentation is bundled with the project, which makes it readily available for offline reading and provides a useful starting point for any documentation you want to write about your project.


Anyone and everyone is welcome to contribute. Hundreds of developers have helped make the HTML5 Boilerplate what it is today.

Something went wrong with that request. Please try again.