HTML <html>

BrandonDusch's avatar
Published Jun 11, 2021Updated Jul 1, 2022
Contribute to Docs

The <html> element represents the entire HTML document.

  • Front-end engineers work closely with designers to make websites beautiful, functional, and fast.
    • Includes 34 Courses
    • With Professional Certification
    • Beginner Friendly.
      115 hours
  • Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.
    • Beginner Friendly.
      7 hours

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>

All contributors

Contribute to Docs

Learn HTML on Codecademy

  • Front-end engineers work closely with designers to make websites beautiful, functional, and fast.
    • Includes 34 Courses
    • With Professional Certification
    • Beginner Friendly.
      115 hours
  • Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.
    • Beginner Friendly.
      7 hours