Writing HTML |
About |
Index |
next |
Creating Your First HTML Document
You are about to embark on a journey that will transform you from a
mere Internet Surfer of the World Wide Web to an Internet
Author of Multimedia!
Objectives
After this lesson you will be able to:
- Identify the meaning and purpose of HTML tags.
- Open up a workspace for creating new World Wide Web documents.
- Create a simple World Wide Web document in HTML format using a text
editor.
- Open your document within your WWW browser to see how it is displayed.
Lesson
What are HTML tags?
When a WWW browser displays a page such as the one you are reading now, it
reads from a text file, and looks for special codes or "Tags" that
are marked by the < and > signs. The general format for a HTML
tag is:
<tag name>string of text</tag name>
As an example, the title for this section uses a header tag
that looks like the following:
<h3>What are HTML tags?</h3>
This tag tells a WWW browser to display the text "What are HTML
tags?" in the style of header level 3. HTML tags may tell a
WWW browser to bold the text, italicize it, make it into a header, or have
it be a link to another document. It is important to note that the
ending tag, </tag name> , contains the "/" backslash character.
This "/" backslash tells a WWW browser to stop tagging the text. Many HTML
tags are paired this way. If you forget the backslash, a WWW browser
will
continue the tag for the rest of the text in your document, producing
undesirable results.
Opening Up Your Workspace
To complete the lessons in this tutorial, you will need to create a
second window and open your text editor
application. Here are the steps for setting up your workspace:
- From the File menu of your WWW browser, select New Window.
A second
window which contains the same information as the first
window will be displayed. Think of the first window as your
"textbook" and the second clone window as your "workspace" for
completing the HTML lessons.
NOTE:
Not all WWW browsers support multiple windows. The only reason to
have two windows
here is so that you can read the instructions for the lessons and
also view your
working document.
- Next you need to jump out of the WWW browser and open your text editor program.
NOTE: You will need to move back and forth between the
different
windows to complete these lessons. This can be a challenge depending
on the size of your monitor. You may choose to resize the three
windows so that they all fit on your screen or layer your windows so
you can click on any of them to bring it to the front.
Creating Your HTML Document
- Go to the text editor window.
- Enter the following text (you do not have to press RETURN at the
end of each line; the WWW browser will word wrap all text):
<title>Volcanoes!</title>
In this lesson you will use the Internet to research
information on volcanoes and then write a report on
your results.
- Save the document as
"Volc.html"
NOTE: For Windows
users, by DOS convention, you will have to refer to all HTML files
with extensions of ".HTM"
By using this file name
extension, a WWW browser will know to read these text files as HTML and
properly display the codes.
This simple file begins with the title tag,
<title>Volcanoes of the World</title>. All HTML documents
start with a title tag. This is the name a WWW browser will display in the
title bar at the top of the browser window.
Displaying Your Document In a WWW Browser
- Return to the window you are using for your work space.
- Select Open Local... from the File menu.
- Use the dialog box to find and open the file you created,
"Volc.html"
- You should now see within the workspace window "Volcanoes!"
in the title bar and the HTML text you created displayed
in WWW format underneath.
Check Your Work
Compare your document with a sample
of how this document should appear. After viewing the sample, use the
Mosaic back button to return to this page.
If your document was different than the sample, review the
text you entered in the text editor. Make sure it matches the text
instructions in this lesson.
Review Topics
- What are HTML tags?
- How do you "open up your workspace" when creating new HTML
documents?
- What steps are involved in creating a simple HTML document?
- How can you display your HTML document in a WWW browser?
Independent Practice
Think of a topic for your own WWW page. Now create your own HTML
text file that includes a <title> tag and a few introductory
sentences. Save the HTML file and reload it in your WWW browser. Keep this
file handy as you will add to it in later lessons.
Coming Next....
Your first WWW page is done! But it is pretty short and not very
exciting! In the next lesson you will modify and update your HTML
document.
| Lesson Index |
next lesson "Modifying HTML" |
Writing HTML Lesson 1: Creating Your First HTML Document
©1995
Maricopa Center for Learning & Instruction (MCLI)
Maricopa County Community College District, Arizona
The Internet Connection at MCLI is
Alan Levine--}
Comments to levine@maricopa.edu