HTML and CSS Reference
In-Depth Information
2.1.1. Gathering the application prerequisites
You'll work with five files in this chapter:
• An HTML document
• A JavaScript source file
• A CSS stylesheet
• The Modernizr library
• The month-picker polyfill script
The stylesheet and polyfill are part of the chapter's source code archive, but you'll need
to download the Modernizr library from its website at . Rename the
.js file to modernizr.js and place it, along with both the CSS file and monthpicker.js, in the
application's directory.
Modernizr offers two choices when you download the library—development or production
builds. The development build contains the entire Modernizr test suite and isn't compressed
or minified. If you're in a hurry and don't mind the large file size, use the development
build. On the other hand, the production build allows you to configure which tests you
want to include and will be compressed and minified to ensure a minimal file size. If you
choose to use the production build, be sure to include the Input Attributes, Input Types, and
Modernizr.load tests, because these are required in this chapter. You'll learn more about
Modernizr later in the chapter.
With the preview and prerequisites out of the way, it's time to start working on the form's
Search WWH ::

Custom Search