SECTION 1: THE BASIC STRUCTURE OF HTML

The first thing to learn about web pages is the basic structure of HTML. This means the fews elements that identify the document as an HTML document. This means four tags, the HTML, HEAD, TITLE and BODY tags, which define different areas of the document. The document structure is fairly similar for all HTML documents so I suggest you use the following example document as the starting point of your HTML documents.



The first piece of HTML

Here is an example of HTML code. It is very simple and doesn't convey any actual information but shows the starting point for writing an HTML document.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>

<HEAD>
<TITLE>Welcome to my home page</TITLE>
<META NAME="author" content="Lightning Jack">
</HEAD>

<BODY>
This is where your page contents would go! <A HREF="nextpage.html">Hello world! </A>
<!-- This is a comment, everything inbetween here is ignored by the browser -->
</BODY>

</HTML>

Note: This example should appear in a seperate window. You can close this window if you want. If no extra window appears then your browser may not understand the "javascript" language or you have turned support for this language off. Either case you still see the example by clicking this link.
This is of course the world famous "Hello World!" sample program. Generally I will use capital letters to signify tags in an HTML document but HTML as a language is generally case insensistive other than the actual text to be displayed of course.
The example does show the starting point when creating a web page.

Next: Breaking down this example.

back start page next