This page is In Progress

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.



The html element (<html>) represents the root of an HTML document. The <html> tag is the container for all other HTML elements; except for the <!DOCTYPE> tag.

Overview Table

DOM Interface

The html element is used to contain a complete HTML document.

<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <title>An Example Web Page</title>
    <h1>Hello World!</h1>
      This is an example web page marked up using HTML.

Internationalization topics related to the html element:



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, the body object represents the entire surface onto which a document’s contents can be rendered.

Related specifications

HTML 5.1
W3C Working Draft
W3C Recommendation
HTML 4.01
W3C Recommendation

See also

Related articles