- By Steve Suehring
After completing this chapter, you will be able to
The basic HTML page that will be used should look familiar if you’ve just come from Chapter 1. In fact, this chapter will use the project created in Chapter 1—specifically the structured layout as shown in Chapter 1—with css and js folders created in the project or document root. See Figure 2-1 for an example of this structure.
Figure 2-1 The folder structure for development for the book should include css and js folders within the project.
Create a new file, or alter your existing index.html to match the code in the following sample. If you create a new file, save it as index.html (which you can find in the companion content as index.html).
Within Visual Studio, click File and then click Save As. The Save File As dialog box opens. Open the js folder and then enter external.js in the File Name text box, as shown in Figure 2-3. (Note that your screen shot might be slightly different than mine, and again, you only need to do this if your version of Visual Studio didn’t allow you to set the name when you added the file.)
Figure 2-3 Saving the external.js file into the js folder.