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

<!DOCTYPE html>
<html>
<head>
<title>HTML html Tag</title>
</head>
<body>
<p>Actual content goes here... </p>
</body>
</html>

This will produce following result:

Actual content goes here...

Global Attributes

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

Specific Attributes

The HTML <> tag also supports following additional attributes:

AttributeValueDescription
manifesthtml-5URLIt is for offline browsing i.e. the address of the document's cache manifest.
xmlns http://www.w3.org/1999/xhtmlDeprecated-Specifies the XML namespace attribute.

Event Attributes

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

Browser Support

ChromeFirefoxIEOperaSafariAndroid
YesYesYesYesYesYes

html_tags_reference.htm

Advertisements