Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

Table of Contents Home Page Web Taming's Free 'Net ToolsSite Search Table of Contents

Learning HTML 3.2: Basic Template  [Prev]  [Next]



Let's start with the minimum HTML 3.2 document, this is just about the simplest document you could create.  Just fire up Notepad (or TeachText) and type the part in red.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>
Title of the Page</TITLE>
<BODY>
<P>
This message will be printed on the screen.
</BODY>
</HTML>

That's all there is to the minimum HTML 3.2 document.  Here is what the tags do:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">:
The prologue which identifies the document's type to the browser, here it's the HTML version 3.2 DTD defined by the W3C (http://www.w3c.org).
<HTML> ... </HTML>
All your code must be enclosed within the <HTML> tags.
<HEAD>
Contains information about the document that won't actually be displayed on the page.
<TITLE> ... </TITLE>
Specifies the title of the document in the title bar of the browser.
<BODY> .. </BODY>
Contains the actual text and markup that will display in the browser.
<P>
Start-of-Paragraph tag, note that there doesn't need to be a corresponding </P>.

And here is the output of the document:

This message will be printed on the screen.

You've just written a complete functional HTML document.  Now that you know the basic structure of an HTML document, we can look at the specific elements that are available.

Jump to top[Top]
• Back • Home • Up • Next •

Send feedback and kudos to: peterconrad@hotmail.com
Copyright © 1996-2004 by Web Taming All Rights Reserved.

For more attractions please visit my Personal Pages on Planet Tripod.