The Standard Template For All Your Documents.

<HTML><HEAD><TITLE> ...
</TITLE></HEAD><BODY> ...
</BODY></HTML>

Four double-TAGs are the foundation for every Web page you will ever write.

     <HTML>  ... </HTML>     - this one's pretty basic
     <HEAD>  ... </HEAD>     - reference info for your page
     <BODY>  ... </BODY>     - HERE'S WHERE YOUR WORK WILL SHOW
     <TITLE> ... </TITLE>    - goes inside the <HEAD>

Since you will use these every time you create an HTML document (you can skip some, but don't), it's worth making a template document with these laid out properly. Open a new document in a word-processing program and make sure you Save As just a Text file. The "Text" file format is so simple that it doesn't even save bolding, centering or italics; as a result word-processors don't normally use it but it is available as an alternate format to Save in. Call your template something easy to remember. Then type the following into it, make sure you save it as a Text file, and come back to this page.

<HTML>
<HEAD>
<TITLE>
...
</TITLE>
</HEAD>
<BODY>
...
</BODY>
</HTML>
[If you're feeling very lazy, you can just FTP the template. This isn't really a ".zip" file, so change the name to something ending with ".htm".]

The first three periods ( ... ) are where your TITLE will go. This doesn't show up on your Web page when you open it with a browser, but it will show up as a bookmark or in the history (Go) of what pages you've had open.

The second three periods are for the BODY of the document. So far, we haven't put in any formatting diamonds so whatever you type here will just show up as a string of plain text. Remember that your browser ignores tabs, extra-spaces and the Return-key (there is an exception to this which we'll explain later). That's why the crunched-together diamonds on top of this page (under the heading) have the identical HTML content as the template.

Now try it. Using your word-processor:

Next, use your browser to open this local file and look at what you've done. You might try saving the URL as a bookmark, or try jumping back to this page and then look at the history of where you've been in order to see your TITLE information show up.


copyright 1995 Philip Merrill
this page may be freely reproduced
Up to HTML table of contents | Back to previous page | Forward to next page