HTML5 <html> Tag

Example

A simple HTML5 document:

<!DOCTYPE HTML>
<html>
<head>
<title>Title of the document</title>
</head>

<body>
Enter your content
</body>

</html>
Code it Online »

Definition and Usage

The <html> tag tells the browser that this is an HTML document.

The html element is the outermost element in HTML documents.

The html element is also known as the root element.

Differences Between HTML 4.01 and HTML5

HTML5 has a new attribute: manifest

Tips and Notes

Note: If you need your content to conform to XML, define the xmlns attribute, the ONLY legal value is "http://www.w3.org/1999/xhtml"

Attributes

Attribute Value Description
manifest url Defines an URL, at this URL the document's cache information is being described.
xmlns http://www.w3.org/1999/xhtml Defines the XML namespace attribute.

Standard Attributes

The <html> tag also supports the Standard Attributes in HTML5.


Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!