HTML <html> Tag

<!DOCTYPE HTML>
<html>
<head>
<title>Document Title</title>
</head>
<body>
<p>Content goes here...</p>
</body>
</html>

The above example demonstrates usage of the <html> element.

The <html> element represents the root of an HTML document. It is the first element in an HTML document. Therefore its start tag is the first tag, and its end tag is the last tag in the document.

In a conforming HTML document, the <html> element contains a <head> element, followed by a <body> element.

The W3C encourages authors to use the <html lang> attribute on the <html>.