HTML Tag Reference - HTML tag <html>








This <html> element identifies the page as an HTML document. It has two main sections, <head> and <body>.

Browser compatibility

<html> Yes Yes Yes Yes Yes

What's new in HTML5

HTML5 has added a new attribute: manifest.

Attribute

manifest
Set the address URL of the document's cache manifest for offline browsing
xmlns
Value:http://www.w3.org/1999/xhtml
Set the XML namespace attribute

Global Attributes

The <html> tag supports the Global Attributes in HTML.

Default CSS Settings

html { 
    display: block;
}

html:focus { 
    outline: none;
}




Example

A demo showing how to use <html> tag.

<html>
<body>
     paragraph#1
     <hr id="firstRule" noshade color="blue">
     paragraph#2
     <hr id="firstRule" color="blue">
</body>
</html>

Click to view the demo