Getting Started with HTML

There are certain commands that should be in every HTML page.
They are:
  1. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
  2. <HTML> and </HTML>
  3. <HEAD> and </HEAD>
  4. <TITLE> and </TITLE>
  5. <BODY> and </BODY>
It doesn't matter if HTML commands are in uppercase or lowercase.

This is the order that they're used in:



<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<TITLE>
This is my title</TITLE>
</HEAD>

<BODY>

Your document goes here.

</BODY>
</HTML>



The <!DOCTYPE HTML> and <HTML> commands point out that the document is written in HTML.

There are two parts of a document: the head and the body.

In the head, you put the title of your document.
The title shows up at the top of the browser.
For example, the one for this document is Tutorial: Beginning HTML.

Don't confuse the title with a heading, though.
The heading at the top of this page is Getting Started with HTML.

In the body, you put the code for all of the text and graphics that you want in your document.
You'll learn how to do that in the next page, More HTML.



[Back to the Table of Contents] [Next Page] [Previous Page]

© 1996-2008 Suzanne Cook