HTML - <html> Tag
Advertisements
Description
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.
Example
Live Demo<!DOCTYPE html> <html> <head> <title>HTML html Tag</title> </head> <body> <p>Actual content goes here... </p> </body> </html>
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 |
---|---|---|
manifest![]() |
URL | It is for offline browsing i.e. the address of the document's cache manifest. |
xmlns | http://www.w3.org/1999/xhtml | 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 |
html_tags_reference.htm
Advertisements