HTML <html> tag

Updated: 04/26/2017 by Computer Hope

HTML <html> tagThe <html> tag is the root of a web page; it is used to tell a browser that it is viewing an HTML document. It is essential to each page and contains all of the other HTML elements within it (with the exception of <!DOCTYPE>). The following sections contain information about this tag, including an example of its code, as well as related attributes and browser compatibility.

Example code

<!DOCTYPE html>
<html>
<head><!--Information about the page--></head>
<body><!--Page content--></body>
</html>

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique attributes for the <html> tag, as well as a description of each.

Attribute Description
manifest Designates the address of the document's cache manifest so it may be browsed offline
xmlns Special attribute that is used if your content needs to conform to XHTML

Compatibility

Internet Explorer Firefox Safari Opera Chrome
All versions All versions All version All versions All versions

Browser, Cache, Code, Compatibility, CSS, URL, XHTML