Name

<HTML> — NN all IE all HTML all

Synopsis

<HTML>...</HTML>

End Tag: Optional

The HTML element is the container of the entire document content, including the HEAD element. Both the start and end tags are optional, but good style dictates the inclusion of both. Typically, the HTML element start tag is the second line of an HTML file, following the Document Type Definition (DTD) statement. If no DTD is provided in the file (it assumes the browser’s default DTD), the HTML start tag becomes the first line of the file. The end tag should be in the last line of the file (but it does not have to stand on its own line).

Example

<HTML>
<HEAD>
    ...
</HEAD>
<BODY>
    ...
</BODY>
</HTML>

Attributes

DIR

LANG

TITLE

VERSION

 

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.