HTML5 Boilerplate: Working with jQuery and Modernizr
This article concludes a two-part tutorial on the many benefits of using HTML5 Boilerplate. As you'll see, its “style.css” and “index.html” files are real time-savers, especially when you're building HTML5 websites that need to be rendered cohesively across most modern browsers.
HTML5 Boilerplate: Working with jQuery and Modernizr (Page 1 of 2 )
Let’s face it: developing HTML5 websites that can be rendered consistently across most mainstream browsers is a challenging task (even for experienced developers). The standard is still immature, and many browsers do not support certain features of the specification. It's no surprise that Internet Explorer is the worst offender here.
Fortunately, there are a few tools that will help you to make the development process much less painful, trust me. A good example of such a tool is HTML5 Boilerplate. This powerful, full-featured HTML5 template permits you to deal more easily with the aforementioned inconsistencies by providing you with a set of fine-tuned default files, aimed at efficiently handling different aspects of your website, including its visual presentation, behavior and even what parts of it should be cached for offline access via the so-called Cache Manifest. Quite impressive, right?
Of course, if you've already read the previous article, you know the advantages that HTML5BP provides right out of the box. In that piece I took an in-depth look at its default “style.css” file. This file comes bundled with a hard-to-beat set of rules for assigning default styles to HTML elements (including the brand new HTML5 ones), dealing with image replacement, clearfixes, and even hidden elements.