[This documentation is preliminary and is subject to change.]
Identifies the document as containing HTML elements.
![]() |
Standards information
- HTML 4.01 Specification, Section 7.3
DOM Information
Inheritance Hierarchy
Remarks
With Microsoft Internet Explorer 6 and later, when you use the !DOCTYPE declaration to specify standards-compliant mode, this element represents the canvas—the entire surface onto which a document's contents can be rendered. When you switch on standards-compliant mode, this element also becomes the positioning container for positioned elements that don't have a positioned parent. When the !DOCTYPE declaration does not specify standards-compliant mode, and with earlier versions of Windows Internet Explorer, the body object represents the entire surface onto which a document's contents can be rendered.
In Internet Explorer 6, When you use the !DOCTYPE declaration to specify standards-compliant mode, this element represents the canvas, the entire surface onto which a document's contents can be rendered.
Examples
This example uses the HTML element to identify the document as an HTML document.
<HTML> <BODY> <P>This is an HTML document.</P> </BODY> </HTML>
See also
- Conceptual
- Using Custom Tags in Internet Explorer
- Other Resources
- CSS Enhancements in Internet Explorer 6
Build date: 3/8/2012
