Basic Components

Contents

  1. HTML-tag
  2. Comments
  3. Head
  4. Title
  5. Body

<HTML>
.........
.........
.........
</HTML>

These elements indicate that the enclosed text is an HTML document.


<HTML>
<!-- Comments -->
.........
.........
.........
</HTML>

Comments can be placed between <!-- and -->.


<HTML>
<!-- ......... -->
<HEAD>
Header material
</HEAD>
.........
.........
.........
</HTML>

The HEAD element is a container for information about the document. It is not displayed as part of the document by a WWW browser. It can for example contain a TITLE.


<HTML>
<!-- ......... -->
<HEAD>
<TITLE>
Title of document
</TITLE>
</HEAD>
.........
.........
.........
</HTML>

The contents of the TITLE element is displayed apart from the text, often in the menu bar. The title is also the name of a bookmark that a user may place, so it is important to give informative titles.


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

Along with HEAD goes the BODY. This element contains all the text and other material that is to be displayed.


Back Back to HTML Course Contents