HTML 4 html Tag

Also see HTML5 <html> Tag.

This page contains information about the HTML 4 version of this element. For a more up to date version, see HTML5 <html> Tag.

The HTML html tag is the container that contains all other HTML elements (except for the !DOCTYPE tag which is located before the opening html tag). All other HTML elements are nested between the opening <html> and </html> tags.



Attributes specific to this tag:
versionSpecifies the HTML DTD version of the document. The version attribute is deprecated - use the !doctype tag instead.
contentSpecifies the property's value.
schemeSpecifies a scheme to use to interpret the property's value (as declared in the content attribute).
http-equivUsed for http response message headers. For example http-equiv can be used to refresh the page or to set a cookie. Values include content-type, expires, refresh and set-cookie.
Other Attributes:
langLanguage code
dirSpecifies the direction of the text

HTML5 Tags

The information on this page is based on HTML version 4.01. Most modern browsers now support HTML5, which is the next version of HTML after HTML 4.01.

See HTML5 <html> Tag for the HTML5 version of the above element.

Also see this list of HTML 5 tags for the latest version of HTML.