BASIC HTML Elements

All HTML 3.0 documents consist of three basic elements. They are:
All documents should also have a TITLE element in the HEADER.

Documents meant to be viewed with Netscape 2.0 can have a FRAMESET element instead of the BODY element. However, the proposed HTML 3.2 standard does not include FRAMESET.

HEAD Element

The HEAD element is embedded in an HTML document before the BODY. It contains general information about the document.

It can be in:

It can contain:

Syntax:

<HEAD> ... </HEAD>

BODY Element

The BODY element contains the actual document which is to be presented. It is the second part of a HTML document. The first part is the HEAD. It cannot contain the HEAD, nor can it be inside the HEAD. It can only be contained in the HTML element.

It can be in:

It can contain:

Syntax:

<BODY> ... </BODY>

TITLE Element

The <TITLE> element specifies the document title. The title is composed of plain text only. No other HTML elements are to be in the title. The title element is always contained within the HEAD element. See also <HEAD>.

It can be in:

It can contain:

Syntax:

<title> ... </title>