Day One Exercise: Building a Webpage

Intro to Web Programming
MIT - AITI
February 2002

Introduction

In this exercise, you will create a polished webpage about movies. The webpage will provide descriptions of movies as well as a form for purchasing the movies. Using the information learned from the lectures this morning, you will format the text of the webpage, add tables, forms, images and links.

The exercise is separated into six steps. At the end of each step, your webpage should look like the printouts in this handout. If you need help at any time, please ask us!


Step 1: Download Files to Disk

Download the following files to your computer by clicking on the links below with the right mouse button and choosing the "Download Link to Disk" option. Save the files to a directory of your choice. Be sure to save the files into the same directory.


Step 2: Basic HTML Page

Now that you have downloaded the two files to the disk, you should start editing "movie.html." Open "movie.html" in NotePad. NotePad is a simple text-editor that you'll be using to create the webpages in this class. After you open "movie.html", you'll notice that the file contains some raw text that over the course of the exercise you'll be changing into a webpage. Each time you edit "movie.html", be sure to save your changes. Then open (or reload) the file movie.html within Internet Explorer to see the results of your changes.

Change movie.html into a simple HTML page as follows:

If you do these steps correctly, your webpage should look like this:


Step 3: Text Formatting

Modify your basic HTML page so that all of the text is formatted as follows:

Now you're webpage should look like this:


Step 4: Insert Image and Links

After this step, your webpage looks like this:


Step 5: Creating a Form

Create a Purchase Form in the "Select Movie" Menu:


Step 6: Movie Price Table

Create a table with a size one border that changes the "Select Movies" menu to list the movie titles and prices:


Step 7: Master Table

Create a master table with a size one border that organizes the overall layout of the page:


Step 8: Nested Table

Create a nested table with a size one border that organizes the layout of the image and movie descriptions:

The nested table has only one row and two columns:

Step 9: Cleaning up the Tables

To clean up the page, change the border size of all the tables to zero. Now you're done!