HomeReferencesHTML Tags

HTML Tag: html

The root element that specifies that the content of the document is HTML. The opening tag immediately follows the DOCTYPE declaration and the closing tag is the last thing in the document. The html element must contain the head and the body elements.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Required Attributes

  • xmlns is used to define the XML namespace. The value must be http://www.w3.org/1999/xhtml.

Optional Attributes

Example


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
	<head>
		[stuff]
	</head>
	<body>
		[stuff]
	</body>
</html>