Document content... ``` --- "> Document Title Document content... ``` --- " />
Easy Tutorial
❮ Att Input Multiple Att Meta Scheme ❯

HTML <html> Tag

Example

A simple HTML5 document:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Document Title</title>
</head>

<body>
Document content...
</body>

</html>

Browser Support

All major browsers support the <html> tag.


Tag Definition and Usage

The <html> tag tells the browser that this is an HTML document.

The <html> tag is the outermost element in an HTML document.

The <html> tag is a container for all other HTML elements (except the <!DOCTYPE> tag).


Differences Between HTML 4.01 and HTML5

In HTML5, a new attribute has been added: manifest.


Differences Between HTML and XHTML

The xmlns attribute is required in XHTML but not in HTML.

However, even if the <html> in an XHTML document does not use the xmlns attribute, the HTML validator on W3C will not report an error. This is because "xmlns=http://www.w3.org/1999/xhtml" is a fixed value, and even if you do not include it, this value will be added to the <html> tag.


Attributes

Attribute Value Description
manifest New URL Defines a URL where cache manifest for the document is described.
xmlns http://www.w3.org/1999/xhtml Not supported in HTML. Only supported in XHTML. Specifies the XML namespace attribute (use this attribute if your content is XHTML-compliant).

Global Attributes

The <html> tag supports HTML's global attributes.

❮ Att Input Multiple Att Meta Scheme ❯