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

Preface

Getting Started with HTML5 Boilerplate will enable you to master setting up new projects with minimal effort and deploy them to production in the most effective manner with the least time spent while also ensuring robust performance. It takes you through a step-by-step process of creating a website and teaches you to take full advantage of the defaults provided within HTML5 Boilerplate, be it styles, mark up, or code, so that you can accomplish your goals with as few cross-browser issues as possible.

What this book covers

Chapter 1, Before We Begin, covers all you need to get set up for your projects to use HTML5 Boilerplate without much effort. We also broadly look at the files that are included as part of this project and how they help you.

Chapter 2, Starting Your Project, covers how to get started with HTML5 Boilerplate with an example, single page website. In this chapter, we look at the basic essentials of configuring the default setup that works for your project.

Chapter 3, Creating Your Site, covers how to customize the styles and the markup of your website along with some tips on how to take advantage of HTML5 Boilerplate's default style options.

Chapter 4, Adding Interactivity and Completing Your Site, will help you discover how to do feature-detection, add some interactivity with JavaScript, and finalize your website implementation.

Chapter 5, Customizing the Server, looks at how you can ensure that your website gets loaded as quickly as possible by using HTML5 Boilerplate's custom configurations for the web servers that host your site.

Chapter 6, Making Your Site Better, looks at the optional features that can also be used to provide a better experience for the users of your site, which would fit well with HTML5 Boilerplate.

Chapter 7, Automate Deployment With the Build Script, helps you to make your sites ready to be deployed live by looking at the Build Script that provides tools to minify CSS, JS, HTML, and images.

Appendix, You Are an Expert, Now What? covers some basics of unit testing and provides additional research information on some of the decisions that were arrived at for the features that HTML5 Boilerplate provides.

What you need for this book

As we will be working on a website, we will need the following basic tools to get our work done:

  • A text editor that you are comfortable using with; SublimeText is recommended with. If you do not have one yet, please download it from sublimetext.com/.

  • Apache Web Server (available from httpd.apache.org) to apply HTML5 Boilerplate's server configurations.

  • A browser to verify the rendering of your website on the screen. Chrome is recommended, because its developer tools are available for debugging. Download Chrome from google.com/chrome.

  • Git, for making sure software is under version control; download it from git-scm.com.

  • You also obviously need HTML5 Boilerplate, which you can download from html5boilerplate.com.

Who this book is for

This book is for all the authors who are familiar with creating web projects using HTML, CSS, and JavaScript. No in-depth knowledge is necessary. Some knowledge of what a web server is and how it can be configured is good to have. Also, you should not be afraid to use the command-line tool (fear not! There are links within the book that should make you less afraid). There are no expectations that you should know about HTML5 Boilerplate, except that you only try it once to see if it works for you.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "However, Normalize.css makes sure that these default styles are consistent across all browsers."

A block of code is set as follows:

header h1 {
background-image: url('/img/heading-banner.png');
width: 800px;
height: 300px;
}

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "The following screenshot shows how the Skip Navigation link is instantly visible when the user switches keyboard focus to it."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.