Back to Concepts

<html>

The root element of an HTML page.

The `<html>` element is the top-level element of an HTML document, often referred to as the root element. All other elements must be descendants of this element. It tells the browser that this is an HTML document. You should always include the `lang` attribute inside the `<html>` tag to declare the language of the Web page, which is crucial for accessibility and search engines.

Live Example & Code

Preview Output
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Page Title</title>
  </head>
  <body>
    <h1>Hello World</h1>
  </body>
</html>
HTMLViz
© 2026 HTMLViz. Open Source Learning.