Step 3: Creating Web Pages

The final step is to create Web pages from your data. This time, we're going to make a plain HTML file that will work on version 3 browsers. All you need to do is click on "Export to HTML" from the File menu, then give your page a filename. Use the filename "test.htm".

The program will tell you that it has produced three files. It is important to understand what these files are, and why they are all needed. In this case, the files will be:

  1. test.htm: the main frameset document. This is the root file; if you want to make a link on another page to your exercise, then this is the file you should link to. This file creates a frameset which contains the other two pages.
  2. testw.htm: the "w" in the filename stands for "welcome", and this is the file which appears in the top frame of the exercise when you first load it into your browser. It contains only a welcome message and instructions for doing the exercise.
  3. testc.htm: the "c" stands for "code", and this file is the main part of the exercise which contains the questions and all the code to make the exercise work.

All three of these files must be in the same folder or directory, and the root file must be loaded into the browser in order for the exercise to work. DHTML Web pages usually consist of only one file, but all of the HTML exercises have several files.