Lesson 1: Getting Started
  1. What is a Tag?
  2. Using Notepad
  3. Opening Notepad
  4. Saving Your HTML Document
  5. Viewing Your HTML Document
  1. The HTML Container
  2. The Head Container
  3. The Title Container
  4. The Body Container

What is a tag?

A tag is a command that tells the web browser what to do. A container is a set of paired tags consisting of an opening and ending tag. While most HTML tags are containers, some HTML tags are empty tags, single tags that don't require a closing tag. In a container, the opening tag tells the browser where to start a command and the closing tag tells the browser where to stop. The opening tag will always have a '<' at the front, the tag name and a '>' at the end. An example of an opening tag is:

<HTML>

All closing tags will have a '<' at the front, then a '/', the tag name, then the '>'. An example of a closing tag is:

</HTML>

Remember, closing tags tell the browser to stop a particular command. Failure to close your tags will instruct the browser to format the rest of your document according to your unclosed tags' commands. Close all containers to prevent your HTML pages from appearing distorted.

Since different containers create different commands, only the text within containers will differ. In the above example, the ellipsis indicate that text will go between the container tags. The text and/or image between any container will display in your browser. The container tags format the contents between them.

It may help to think of an HTML page as a set of nested tags. Container tags will have text nested between their opening and closing tags. Opening container tags may contain attributes that modify their commands. Empty tags can be placed anywhere within the BODY container (see below) of an HTML document, and they are primarily used to format a page (add a horizontal line, page break etc.).

OK, that was a lot to digest. Take a breath; it will all make sense soon.

REMEMBER: Most problems with displaying web pages come from not pairing the tags.

Top of Page


Opening Notepad

Although there are several ways to write and HTML document, we will be using Notepad for this tutorial. You can open Notepad on your PC using the following steps:

  1. Press the Start Icon on the bottom left-hand side of the screen
  2. Go to Programs
  3. Go to Accessories
  4. Select Notepad
  5. Maximize the window

Top of Page


Using Notepad

You can indent your tags using the SPACE bar and create line breaks using the ENTER key to make it easier to read and keep organized. But don't press the ENTER key within a tag.

Incorrect Syntax
Correct Syntax

<HTML

>

<HTML>

In addition, HTML is not case-sensitive. You can type your tags in all caps or lower-case.

Top of Page


Saving your HTML Document
  1. Go to File on the menu bar.
  2. Select Save As.
  3. Type in your file name. Your file name must end with (.html). For example, if you wanted to save your file as (myresume), you must save it as (myresume.html). Although it is not essential to use all lower-case letters when saving HTML documents, it is considered good web page etiquette.
  4. Press Save.
Top of Page
Viewing your HTML Document
  1. Open up your Web browser (Netscape Navigator or Internet Explorer).
  2. Select FILE (on web browser).
  3. Select OPEN
  4. Select BROWSE to find your file
  5. Open your document.

NOTE: To view your results, save any changes you've made and click your browser's REFRESH button. Otherwise, it will continue to show the same page.

Top of Page


The HTML Container (<HTML>. . .</HTML>)

The HTML tag is at the beginning and ending tag for every web document. Essentially it tells the computer where to start and stop or in other words, where the HTML in your document begins and ends, and identifies the type of document you're creating.

Top of Page


The HEAD Container (<HEAD>. . .</HEAD>)

The <HEAD> tag is always placed after the <HTML> tag, and the </HEAD> tag. The closing </HEAD> tag is placed before the <BODY> tag (to be described later). The HEAD tag contains the information required to display a title for the web page in the web browser's title bar.

Top of Page

The TITLE Container (<TITLE>. . .</TITLE)

You will be able to display a label for your resume in the web browser's title bar by using the TITLE tag. The <TITLE> tag is always placed after the <HEAD> tag, and the closing </TITLE> tag placed before the </HEAD>.

Example:

HTML, HEAD & TITLE Containers
Syntax
Result
  • <HTML>

    <HEAD>

    <TITLE>Template Page</TITLE>

    </HEAD>

    <BODY></BODY>

    </HTML>

Top of Page


The BODY Container (<BODY>. . .</BODY>)

The <BODY> tag comes directly after the </HEAD> tag and the </BODY> tag goes just before the </HTML> tag. To work properly, all of your text, graphics, links, etc. must be placed between the BODY tags.

Example:

Basic HTML Page Syntax
Syntax
Result
  • <HTML>
    <HEAD>

<TITLE>Template Page</TITLE>

</HEAD>

<BODY>
Body of Page
</BODY>

</HTML>

Body of Page

Top of Page


Previous
Next

 

| Home | Lesson 1 | Lesson 2 | Lesson 3 | Lesson 4 | Lesson 5 | FAQS |