Learning HTML 3.2 by Examples, section 5 Descriptions of HTML 3.2 tags:

HTML - the top-level element in HTML


Essentially, an HTML file in its entirety is an HTML element, but usually the start and end tags are omitted. See the description of the basic structure of HTML documents.

Typical rendering

Using an explicit HTML element does not affect the document rendering.

Basic syntax

the document head and body

Possible attributes

attribute name possible values meaning notes
VERSION string version of HTML deprecated in HTML 4.0

Allowed context

(The HTML element is the top level element in the HTML language. See the description of the basic structure of HTML documents.)


HEAD followed by BODY.


Example hello.html:

Hello world


If used, the start and end HTML tags must go around the entire document but directly after the DOCTYPE declaration.

The VERSION attribute is rarely used, and the information in it is almost never used by browsers or other software. To specify the HTML version used, use a DOCTYPE declaration.

Date of last update: 2010-12-16.
This page belongs to the free information site IT and communication, section Web authoring and surfing, by Jukka "Yucca" Korpela.