This tutorial assumes that you will cover the points in the order that they are presented. Put this document on your bookmark list now. Use this bookmark to return to this page after trying each instruction.
Write your document so that one of your students, colleagues, or administrators could use this as a starting point to learn about your topic and the information available about your topic on the internet. (assuming this person had a browser and an internet connection)
Use this online worksheet as you do your project. It will guide you through writing an HTML document. This worksheet includes instructions for saving your WWW page to your disk so you can use, modify, or add to your document on your computer at home or at school.
HTML is a markup language which means the author has to specify formatting commands as well as the text content of the document. For example, the author has to indicate what text should be used for the document's title, what text should be a section heading, and what text should be bold or italic.
This is done through the use of formatting elements called tags. Tags consist of a formatting keyword surrounded by angle brackets (i.e. less than and greater than signs):
<TAG_KEYWORD_HERE>Usually these tags come in pairs so that they mark the beginning and the ending of the text phrase that is to be formatted. The ending tag is the same as the starting tag, except that the ending tag is preceded by a forward slash "/". For example: A document title would be written:
<TITLE>This Is My Document Title</TITLE>Note that in HTML, you specify the document's structure, not the document's exact layout. A document's structure includes specifying which text is a TITLE, paragraph, section heading, subsection heading, numbered list, etcetera. (i.e. what logical part of the document the text represents)
A document's layout includes specifying margins, font names, text sizes, etcetera. (i.e. how the text should be presented to the user) The document's layout is determined by the browser the reader uses. It is the browser that decides when it sees a TITLE tag that it will display the text in 24 pt Helvetica font. The document author can only indicate which text is tagged as the TITLE.
This can be somewhat frustrating for authors who want to set the exact look of a document. But it is worthwhile for several reasons:
Use your first window as your "instructions" window. In your second window, click on this link for an empty file. Your browser should show an empty page.
Now from the VIEW menu, select SOURCE... This will bring up your text editor (in this case SimpleText), so you can see the source code for the current Web page you have been viewing. This can be used for any Web (HTML) page, and is very useful in learning HTML via seeing how others have written their documents.
In this case, since the page was empty, there is no source code and your text editor should show a blank page.
Start your document using this blank page. To do this:
This is a Web Page of information on YOUR_TOPIC_NAME_HERE.
Note the file:/// prefix of the LOCATION field at the top of your window. This tells you that you are viewing a local file.
Your Web document should look like this example.
When you are using Netscape to view any of the examples in this tutorial, you can use the VIEW menu SOURCE item to see the source code for that example. Note that VIEW SOURCE shows the source code for the current document you are viewing. So you will actually have to be viewing the example at the time you select VIEW SOURCE in order to see the source for it. Try this now with the example link above, and then return back to this page. You can close the window with the example's source code by clicking on the square in the top left corner of that window.
So as you go through this tutorial, you will be alternating between modifying your page in the text editor, and then previewing your page with Netscape to see how it looks. We will go through this cycle once here, and then you will be expected to use this process for the rest of the tutorial.
To modify and preview your Web Document:
This was written as part of Fermilab's WWW Institite for Educators.
You can use this tutorial in two ways: You can type in the exact text specified, so your file should match the example files given, or you can type in text appropriate to your topic in these examples. Do whichever you feel most comfortable doing.
If you choose to type in the exact text suggested, it may be a little easier to check your work. You can always change the text to content relevant to your topic later.
Try resizing your Netscape window to be very large and very small using the squares in the bottom right corner of the window. So this type of automatic formatting is a good feature because you as an author do not know how big your reader's window will be.
However, You can add Paragraph tags to start a new paragraph of text in your document. Web browsers will show the reader blank lines between the paragraphs. Change your two introductory lines to be two separate paragraphs by putting <P> at the start of the text to be a paragraph and </P> at the end of the text. This should look like:
<P>This is a Web Page of information on YOUR_TOPIC_NAME_HERE. </P>Paragraphs can of course be longer than these two examples. Whatever their length, they are still implemented by putting <P> at the start of the paragraph and </P> at the end.
<P>This was written as part of Fermilab's WWW Institite for Educators. </P>
HTML tags are case insensitive: they work whether they are upper case letters or lower case letters. I like using all upper case tags to make it easier to distinguish between the text content and the formatting.
This is the example with paragraphs.
<TITLE>Internet information on YOUR_TOPIC_NAME_HERE</TITLE>You can leave a blank line in your editor between the Title and your paragraphs. As we saw before, browsers ignore line endings and blank lines, but your source file will be easier to read and change if you include some blank lines in it.
Note that the Title is not actually part of your document's content. The Title appears at the very top bar of the Netscape window, rather than as text inside the window. Netscape uses the file name as a title if there is no Title information in your document.
This is the example with a title.
<TITLE>Internet information on YOUR_TOPIC_NAME_HERE</TITLE>There are six levels of headings: H1 to H6. H1 is the most significant (largest) and H6 is the least significant. Add a level 2 heading after your level 1 heading. Also add another level 2 heading after your introductory paragraphs. This should look like so:<H1>Internet information on YOUR_TOPIC_NAME_HERE</H1>
<P>This is a Web Page of information on YOUR_TOPIC_NAME_HERE. </P>
<P>This was written as part of Fermilab's WWW Institite for Educators. </P>
<TITLE>Internet information on YOUR_TOPIC_NAME_HERE</TITLE>This is the example with headings.<H1>Internet information on YOUR_TOPIC_NAME_HERE</H1>
<H2>Introduction</H2>
<P>This is a Web Page of information on YOUR_TOPIC_NAME_HERE. </P>
<P>This was written as part of Fermilab's WWW Institite for Educators. </P><H2>Related Information</H2>
Add an unordered list at the bottom of your document. Use place holders like "Resource 1" for the individual items in the list for now. We will fill in links to the resources you collected in your bookmark list at a later time.
The text that you add to the bottom of your document will look something like this:
This is a list of items related to XYZ aspect of YOUR_TOPIC_NAME_HERE.This is the example with an Unordered List.<UL>
<LI> Resource 1
<LI> Resource 2
<LI> Resource 3
</UL>
Add an ordered list at the bottom of your document using place holders again.
This is a list of items related to ABC aspect of YOUR_TOPIC_NAME_HERE.This is the example with an Ordered List.<OL>
<LI> Resource 1
<LI> Resource 2
<LI> Resource 3
</OL>
For example, add some preformatted text indicating your classes and units that this page might be useful for. This would look like something like:
<H2>Audience</H2>This is the example with an Preformatted Text.This information could be useful for
<PRE> 6th Grade Earth Science 7th Grade Life Science 8th Grade Writing </PRE>
The <BR> tag can be used if you just want to force a line break. To do this, just put <BR> at the end of the line of text where you want the line break. <BR> has no matching ending tag. <BR> and <PRE> should not be used frequently because you may be writing something that will look good when viewed with your browser, but will look bad when viewed by a different browser. It is usually better to let the browser make spacing decisions.
Writing a Table of numbers is a good reason for using these tags. In the future, there will be a HTML tag for writing tables, so using preformatted tags for tables won't be necessary.
There are many logical font styles. The two most common are "emphasized" (<EM>) and "stronger emphasized" (<STRONG>). These tags all have matching ending tags, and must be used at the start and the end of the words to be affected.
In your Document, emphasize the phrase "WWW Institute for Educators". Use "stronger emphasized" font style on the phrase YOUR_TOPIC_NAME_HERE in your first paragraph. This should look something like:
<P>This is a Web Page of information on <STRONG>YOUR_TOPIC_NAME_HERE</STRONG>. </P>This is the example using font styles.
<P>This was written as part of Fermilab's <EM>WWW Institite for Educators</EM>. </P>
<TITLE>Internet information on YOUR_TOPIC_NAME_HERE</TITLE>This is the example using horizontal lines.<H1>Internet information on YOUR_TOPIC_NAME_HERE</H1>
<HR>
<P>This is a Web Page of information on <STRONG>YOUR_TOPIC_NAME_HERE</STRONG>. </P>
... rest of document ...
<HR>
Put an author, contact address and date at the bottom of your page (just below the last horizontal line) like so:
<ADDRESS>YOUR NAME (email address if you have one)</ADDRESS>This is the example using the ADDRESS tag.
<ADDRESS>January 30, 1995</ADDRESS>
<HTML>A legal HTML document has two sections: <HEAD> (which contains header information about your document, but no document content) and <BODY> (which contains the content of your document). Both have matching ending tags (preceded by "/").
... rest of document ...
</HTML>
The header information (not to be confused with section headings) includes at least the title of the document. This is all we have included for now. Add these <HEAD> tags surrounding your document Title.
<HTML>The body information includes everything else (all document content) up until the final </HTML> tag. Add a <BODY> tag immediately after the ending </HEAD> tag. Add an ending </BODY> tag as the second to last line of your file - just before the ending </HTML> tag.<HEAD>
<TITLE>Internet information on YOUR_TOPIC_NAME_HERE</TITLE>
</HEAD>... rest of document ...
</HTML>
<HTML>This is the example using HTML, HEAD, and BODY tags.<HEAD>
<TITLE>Internet information on YOUR_TOPIC_NAME_HERE</TITLE>
</HEAD><BODY>
... rest of document ...
</BODY>
</HTML>
To link to a Gopher or WWW resource on the internet, you use the following Anchor Hypertext Reference tags:
<A HREF="URL_GOES_HERE">Your choice of text to activate the link </A>For example, a link to the Fermilab Education home page would look like this:
<A HREF="http://www-ed.fnal.gov/ed_home.html"> Fermilab Education Home Page</A>A Gopher link to the Veronica searching tools we used last session would look like this:
<A HREF="gopher://cheops.anu.edu.au/11/Socioinf-query/JugheadVeronica"> Veronica searches</A>Add a link to the Fermilab Education Home page in your introductory paragraphs in your document. When you view your document, try the link out to see if it works.
You can put these links almost anywhere in your document that text can go: Headings, Paragraph Text, List Items, etcetera. As a List item, the Fermilab Education Page link would look like this:
<LI> <A HREF="http://www-ed.fnal.gov/ed_home.html"> Fermilab Education Home Page</A>For the moment, add this link as your first unordered list item (replacing "Resource 1"). When you view your document, try the link out to see if it works. This will look like:
This is a list of items related to XYZ aspect of YOUR_TOPIC_NAME_HERE.This is the example using both Fermilab WWW links.<UL>
<LI> <A HREF="http://www-ed.fnal.gov/ed_home.html"> Fermilab Education Home Page</A>
<LI> Resource 2
<LI> Resource 3
</UL>
Now use your Bookmark list to replace your other "Resource N" placeholders with links to the resources you collected last session. To do this:
<A HREF="XXX"> YYY</A>in your document where you want the link. Then replace XXX with a copy of the text from the URL / LOCATION field and replace YYY with a copy of the text from the NAME field.
Feel free to change the text from the NAME field if you can think of text that would be more helpful for your page.
When you COPY the text from the LOCATION field, be sure you get the whole text of the URL, not just the part that is showing. Sometimes the URL is quite long and the LOCATION field does not show all of it. Just be sure to drag your mouse all the way to the right of the LOCATION field when you COPY.
This is the example using more links with arbitrary links of my own put in.
Even though you do not yet have an internet connection, you can still use Netscape to preview files local to your computer at home or at school. You can continue to write and preview your files this way.
Consult the next two sections for information on writing HTML if you need or want to know where to look for information we have not covered.