HTML - <html> Tag



The HTML <html> tag is the container that contains all other HTML elements except for the !doctype tag which is located before the opening <html> tag. All other HTML elements are nested between the <html> and </html> tags.


<!DOCTYPE html>

      <title>HTML html Tag</title>

      <p>Actual content goes here... </p>


This will produce the following result −

Global Attributes

This tag supports all the global attributes described in HTML Attribute Reference

Specific Attributes

The HTML <> tag also supports the following additional attributes −

Attribute Value Description
manifesthtml-5 URL It is for offline browsing i.e. the address of the document's cache manifest.
xmlns Deprecated − Specifies the XML namespace attribute.

Event Attributes

This tag supports all the event attributes described in HTML Events Reference

Browser Support

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes