• Stars
    star
    55,802
  • Rank 176 (Top 0.01 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 14 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A professional front-end template for building fast, robust, and adaptable web apps or sites.

HTML5 Boilerplate

Build status LICENSE NPM Downloads github-stars-image

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

This project is the product of over 10 years of iterative development and 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.

About This Repository

This repository is where HTML5-Boilerplate is authored. Some of the tools, files and processes that you see here are solely for the production of HTML5 Boilerplate and are not part of HTML5 Boilerplate. For one example, the gulpfile.mjs script is used to build the project. It's not part of the project itself.

The project we publish is represented by the contents of the /dist/ folder. Everything else in this repository is used to author the project.

Think of it this way, in the same way that you don't clone vuejs/core to create a Vue.js app, you don't need to clone this repository to start a new site or app based on HTML5 Boilerplate.

So, if you're looking for a quick start template to build a web site or application, look at the options in the Quick Start section of this document.

If you want to help us improve HTML5 Boilerplate then you can start with the documentation here, which includes steps to clone this repo in order to get it set up for development.

Quick Start

Choose one of the following options:

  • Using the create-html5-boilerplate script, instantly fetch the latest npm published package (or any version available on npm) with npx, npm init or yarn create without having to install any dependencies. Running the following npx command installs the latest version into a folder called new-site

    npx create-html5-boilerplate new-site
    cd new-site
    npm install
    npm run start
  • Using our new Template Repository create a new GitHub repository based on the latest code from the main branch of HTML5 Boilerplate.

  • Install with npm: npm install html5-boilerplate or yarn: yarn add html5-boilerplate. The resulting node_modules/html5-boilerplate/dist folder represents the latest version of the project for end users. Depending on what you want to use and how you want to use it, you may have to copy and paste the contents of that folder into your project directory.

  • Download the latest stable release from here. This zip file is a snapshot of the dist folder. On Windows, Mac and from the file manager on Linux unzipping this folder will output to a folder named something like html5-boilerplate_v8.0.0. From the command-line, you will need to create a folder and unzip the contents into that folder.

    mkdir html5-boilerplate
    unzip html5-boilerplate*.zip -d html5-boilerplate

Features

  • A finely-tuned starter template: Reap the benefits of 10 years of analysis, research and experimentation by over 200 contributors.
  • Designed with progressive enhancement in mind.
  • Includes:
  • Placeholder Open Graph elements and attributes.
  • An example package.json file with WebPack commands built in to jumpstart application development.
  • Placeholder CSS Media Queries.
  • Useful CSS helper classes.
  • Default print styles, performance optimized.
  • Protection against any stray console statements causing JavaScript errors in older browsers.
  • "Delete-key friendly." Easy to strip out parts you don't need.
  • Extensive documentation.

Browser Support

HTML5-Boilerplate supports the latest, stable releases of all major browsers.

You can find our range of supported browsers in our package.json At present we alter the browserlist default by dropping IE 11.

  "browserslist": [
    "> 0.5%",
    "last 2 versions",
    "Firefox ESR",
    "not dead",
    "not IE 11"
  ],

That configuration translates to this full list of browsers.

Documentation

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

Contributing

Hundreds of developers have helped to make the HTML5 Boilerplate. Anyone is welcome to contribute. However, if you decide to get involved, please take a moment to review the guidelines:

License

The code is available under the MIT license.

More Repositories

1

Front-end-Developer-Interview-Questions

A list of helpful front-end related questions you can use to interview potential candidates, test yourself or completely ignore.
Nunjucks
58,638
star
2

server-configs-nginx

Nginx HTTP server boilerplate configs
10,923
star
3

Effeckt.css

This repo is archived. Thanks!
CSS
10,917
star
4

mobile-boilerplate

DEPRECATED - A front-end template that helps you build fast, modern mobile web apps.
ApacheConf
3,864
star
5

server-configs-apache

Apache HTTP server boilerplate configs
Shell
3,161
star
6

server-configs

Boilerplate configurations for various web servers.
3,090
star
7

lazyweb-requests

Get projects and ideas built by the community
1,687
star
8

ant-build-script

Ant build script intended for use with HTML5 Boilerplate. You may find something useful here, but this project is archived.
Shell
984
star
9

html5please

Graded Feature Support: Look up web technologies and find out if they are ready for use.
JavaScript
836
star
10

html5boilerplate.com

Files for the HTML5 Boilerplate website.
HTML
483
star
11

mothereffinganimatedgif

Make your animated gifs in the browser! Oh yeah!
JavaScript
377
star
12

server-configs-node

Express / Connect middleware for websites. Goes well with HTML5 Boilerplate.
JavaScript
340
star
13

server-configs-iis

IIS Web.Config Boilerplates
340
star
14

movethewebforward

Project archived.
JavaScript
283
star
15

create-html5-boilerplate

npx quick start for html5-boilerplate
JavaScript
277
star
16

generator-h5bp

Archived!
JavaScript
240
star
17

main.css

A repository for the development of the HTML5 Boilerplate CSS file, main.css
CSS
191
star
18

generator-server-configs

This project is archived
JavaScript
137
star
19

html5-boilerplate-template

HTML5-Boilerplate Template Repo
CSS
88
star
20

h5bp.github.io

A website for the H5BP organization. Browse all the H5BP projects in one place.
JavaScript
84
star
21

generator-mobile-boilerplate

Scaffolds out H5BP Mobile Boilerplate
JavaScript
76
star
22

server-configs-gae

Google App Engine (GAE) app boilerplate config
62
star
23

server-configs-lighttpd

Lighttpd HTTP server boilerplate configs
54
star
24

html5boilerplate.com-mobile

Deprecated- thanks!
JavaScript
40
star
25

server-configs-test

Tests for HTTP server boilerplate configs
JavaScript
36
star
26

.github

The readme for the @h5bp organization's homepage
4
star