===============================================================

Create a Minimal HTML Page

Module W22h

* About this document... * Audience and Objectives===============================================================

Overview

In this exercise, we will create an HTML template file using a text editor such as Windows Notepad. We will then take the template and make it the home page of a course Web site.

===============================================================

Start a Text Editor

The text editor will show you a blank page. Nothing much there except Potential. The potential of the Web is in your hands now!

===============================================================

Save the file as template.htm

It's a good idea to save a file when you first create it. Use either menu item File > Save or File > SaveAs. The first time you save a file, these do the same thing: they as for the location, type, and name of the file.

The purpose of a template file is to simplify your life. Whenever you want to make an HTML file, there are some standard things you always have to put in. Why not do it once, save the file, and never have to type it again? Just don't forget what should be there!

===============================================================

Type in the HTML tags that are always needed

These are the tags that are always needed; check your reference book to make sure you get them right:

===============================================================

Save the file again

You're done with the template for now, so save it. Of course, you can go back on make it fancier when you've learned more HTML tricks.

===============================================================

Start your INP 150 home page

Now we'll work on the home page for your INP 150 class. Since you have the template already done, you can just start putting in some simple text:

===============================================================

Use SaveAs to change the name of the file to index.html

It's easy to make a mistake and save over the template file! It's not a disaster - just an inconvenience. To keep your template file clean and simple, change the name of the file using File > SaveAs. Put it on your disk and call it "index.html". That's a special name for Web files that serve as a home page within a directory of files.

===============================================================

View and print the page in a browser

The purpose of a Web page is to be shown in a browser, right? So take a look! You don't need to exit from the text editor; just run a browser and use File > Open to find where you saved your index.html file. How does it look? Certainly nothing fancy, but it's all yours. :-) If anything in the file doesn't look right, you need to:

  1. Go back to the text editor
  2. Change the HTML code and text
  3. Save the file (File > Save or <Ctrl>+S)
  4. Go back to your browser
  5. Click the Refresh or Reload button in the browser's toolbar.

When you get more complex HTML, you may have to go through this process several times.

===============================================================

After corrections, submit the code to your instructor

For this assignment, the deliverable is a page of HTML code representing your home page's source. Check to make sure your name appears in the title!


Audience: This is for people who understand basic HTML concepts and want to create a minimal HTML page.
Objectives: When you successfully complete this lesson, you will be able to...

===============================================================

About this document...
Module W22h: This document is part of a modular instruction series in computer technology. For more information, see the overview or the list of modules in this series, W: World Wide Web. This document has been used in the following classes: INP 150 Basic HTML.

Author: Laurence J. Krieg
Institution: Internet Professional Department, Washtenaw Community College

History: Original: October 2000; This revision: 10 Sep 2002

Copyright © 2002, Laurence J. Krieg, Washtenaw Community College
Instructors: You may point to this file in your Web-based materials.
Students: you may make a copy for your personal use.

All other uses: contact the author, Laurence J. Krieg for permission.
===============================================================