This element identifies the document as containing HTML elements. It should immediately follow the prologue document identifier and serves to surround all of the remaining text, including all other elements. HTML user agents use the presence of this element at the start of a HTML document to ensure that the document is actually HTML, according to the "text/html" MIME type. The document should be constructed thus :
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML>
The rest of the document should be placed here.
</HTML>
The HTML element is not visible upon HTML user agent rendering and can contain only the <HEAD>
and <BODY>
elements.
NOTE : The <HTML>
element can be used to set Style Sheet information to be used for the whole document.
TITLE="informational ToolTip"
The Internet Explorer 4.0 (and above) specific TITLE
attribute is used for informational purposes. As the <HTML>
element doesn't directly affect the display of a document, no ToolTip is presented when using the TITLE
attribute (as with other elements).
LANG="language setting"
The LANG
attribute can be used to specify what language the document is using. It accepts any valid ISO standard language abbreviation (for example "en"
for English, "de"
for German etc.) For more details, see the Document Localisation section for more details.
Consistent with Internet Explorer 4.0's Dynamic HTML object model, the <HTML>
element supports various properties and methods. In its role as a document structure element, it supports no events.
<HTML...>
Properties
Of the Standard Dynamic HTML properties, <HTML>
supports className, document, id, isTextEdit, lang, parentElement, sourceIndex, tagName and title. See the Standard Dynamic HTML properties topic for details.
<HTML...>
Methods
Of the Standard Dynamic HTML methods, <HTML>
supports contains, getAttribute, removeAttribute and setAttribute. See the Standard Dynamic HTML methods topic for details.
© 1995-1998, Stephen Le Hunte