<html>

The <html> tag represents the entire HTML document.

Syntax

<html>
<!-- Entire document goes here -->
</html>

It is the outermost element, and may only have <head> and <body> as its children.

Example

<html>
<head>
<!-- Document metadata goes here -->
</head>
<body>
<!-- User facing content goes here -->
</body>
</html>
Edit this page on GitHub

Contributors

Interested in helping build Docs? Read the Contribution Guide or share your feedback.

Learn HTML on Codecademy

Edit this page on GitHub

Contributors