Book Image

HTML5 Boilerplate Web Development

By : Divya Manian
Book Image

HTML5 Boilerplate Web Development

By: Divya Manian

Overview of this book

<p>HTML5 Boilerplate is the number one choice for many web developers to get their projects going. It provides a comprehensive set of starting templates to get your developments going, ensuring you don&rsquo;t forget any important elements of a typical web project while also ensuring you are writing quality code and mark up. Learning how to use this framework of page and code templates will allow you to kick-start your projects quickly without losing out on quality.<br /><br />"HTML5 Boilerplate Web Development" will enable you to build new projects effectively with minimal effort. HTML5 Boilerplate allows you to deploy quality websites successfully and quickly while also ensuring robust cross-browser performance. It takes you through the step-by-step process of creating a website and teaches you to take full advantage of the html layouts provided within HTML5 Boilerplate; be it styles, mark up, or code so you can accomplish your goals.<br /><br />This book will guide you through the process of building a music festival website, as an applicable example, using HTML5 Boilerplate. You will install, set up HTML5 Boilerplate and deploy production sites. <br /><br />First, we will look at how to install HTML5 Boilerplate so you can use it repeatedly to jumpstart your projects, then we will look at structuring your website using the base files. We will use Modernizr and feature detection to dynamically serve different styles and scripts based on support of certain features. We will discover how to best configure our server to provide high performance and security for our website. Finally, we employ the Build Tool to combine files, remove comments and make the site ready for production use.<br /><br />"HTML5 Boilerplate Web Development" offers a well-rounded tutorial in expert web development; not just a starting place for web projects. It develops code snippets, links to further resources for and in addition to makes you understand the nuances of HTML5 Boilerplate.</p>
Table of Contents (15 chapters)
HTML5 Boilerplate Web Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating your initial project folder


HTML5 Boilerplate is available in three versions from the website, as we saw in the previous chapter. Here are two of the quickest ways to get started with the latest files:

  • Download the latest version of HTML5 Boilerplate for every new project you start with

  • Maintain a local, up-to-date copy of the HTML5 Boilerplate and use a script to copy files into your project

We will look at both these ways now.

Downloading the latest version of HTML5 Boilerplate

This is the easiest way to get started with the latest files on HTML5 Boilerplate. If you are conversant with Git, you can download HTML5 Boilerplate as a folder. In your command-line interface, navigate to the folder where you store your projects typically, and then enter the following command in your command-line interface:

git clone git://github.com/h5bp/html5-boilerplate.git

This will download a folder called html5-boilerplate to that folder. You can then rename it to your own project and get started with...