Basic HTML Document Structure

Navigation

Sponsors

The Basic Strcture of an HTML Document

Save this to Del.icio.us

An HTML document consists of 2 parts, the <head> and <body>. The <head> section contains information such as META tags, which states various aspects of the page such as title, description, author etc... This section is not shown to the visitor but instead is used for the benefit of search engines and spiders. The <body> section on the other hand contains all of the code that defines what is displayed and how it is shown.

All of this must be contained within <html> tags ("tags" are also known as "labels").

Lets use this page to look at an example of an HTML document:

A Simplified Example of an HTML Document

<html>
<head>
<title>Basic HTML Document Structure</title>
</head>

<body>
<h1>The Basic Strcture of an HTML Document</h1>

&p>An HTML document consists...</p>
</body>
</html>

As you learnt in the Introduction to HTML, the majority of HTML elements are used using pairs of tags. The start tag, e.g. <p>, and the end tag, e.g. </p>.

There are many elements within the above example. Don't worry if you don't understand it all just yet - the aim of this was to just give you an example of what the structure of an HTML document should look like. Just make sure that you have had a look at the elements in bold, i.e. the <html>, <head> and <body> tags.


[ Back to HTML Tutorials ]


| Forums | Search | Donate | Links | Contact | Scripts | Templates |
Copyright © 2008 SiteToolCenter.com

Website Design

Best Viewed With Mozilla FireFox