myatari.net

[ MyAtari Advert ]

 Home | E-mail


HTML Basics - Part 2 of 12
by Matthew Bacon

A basic web page
A web page is essentially made up of two sections. The first is the head, which contains the title and meta tags (all will be explained in due course) and the second is the body, which contains the actual contents of the web page.

The basic structure of a web page is shown below...

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

A web page begins with the tag <HTML> and ends with the tag </HTML>. The head section is enclosed between the tags <HEAD> ... </HEAD> while the body section is enclosed by the tags <BODY> ... </BODY>. Within the head section, the tags <TITLE> ... </TITLE> must appear! (this is where the title of your web page should be written).

OK, it's time to write your first web page! Copy the example below into your text editor, you may substitute your own title, text and name if you wish :-)

<HTML>
<HEAD>
<TITLE>This is my first web page</TITLE>
</HEAD>
<BODY>

Welcome to my first web page :-)

</BODY>
<ADDRESS>

This page was written by Matthew Bacon

</ADDRESS>
</HTML>

In the example above, a new pair of tags have been introduced (<ADDRESS> and </ADDRESS>). Your name and contact details, should appear between these tags (no particular reason, it is just polite!).

Previous

Next


MyAtari magazine - Tutorial #2, April 2001

Current Issue
-
Contents
-
Features
-
Reviews
-
Tutorials
-
Regulars
-
Adverts

[ Top of page]

 

Copyright © 2001 MyAtari