HTML and CSS Reference
In-Depth Information
Before you create the index page, you need to handle a couple of prerequisites:
1. Create a directory, and put the style.css file from this chapter's source code in it.
2. Create an empty app.js file, and put it in the same directory as the style.css file.
Note that all files for the topic are available at the topic's website: ht-
tp://www.manning.com/crowther2 .
At this stage you're probably itching to get started, so let's do just that.
3.1.1. Defining the HTML document structure
The initial code you need loads in the CSS and JavaScript resources for the application and
defines the <section> elements for each of the two views.
Step 1: Create index.html
Begin by creating a file named index.html, and add the contents of the following listing to
it.
Listing 3.1. index.html—Application HTML structure
Search WWH ::




Custom Search