Learning HTML
Chapter 2 - Creating Your First HTML Document

2.4 Review

In this section, we used a text editor (Notepad) to create a text file with HTML commands. The commands allowed us to use a heading, separate text into paragraphs, format some text as bold and italics, and display a line. We then used a browser (Netscape) to view the file, which was saved on our hard disk.

The following HTML tags were used in this document:

<HTML> </HTML>
Document type - these tags enclose the entire document and identify it as HTML for the browser. Most browsers do not mind if these tags are omitted, but it is good practice to include them in your document.

<H2> </H2>
Heading - formats text as a heading (valid values are H1 to H5). H1 is the top level heading, and is displayed as the largest by Netscape.

<B> </B>
Bold - formats the text as bold.

<I> </I>
Italics - formats the text as italics.

<P>
Paragraph break - ends paragraph and skips a line.

<BR>
Line break - begins a new line of text.

<HR>
Horizontal rule - displays a ruler line.

In the next section, we will enhance your sample document by using more HTML tags. If you're not going on to the next section, make sure you exit Notepad.


Learning HTML
www.dickinson.edu/~dempsey
Last updated 6/8/2001
Copyright © 2001 Paul Dempsey