Understanding the <html> Tag

The <html> tag is the root of an HTML document.

All HTML content must be enclosed within the <html> tag.

It usually contains two main sections:

Example Structure:

<!DOCTYPE html>
<html>
  <head>
    <title>Page Title</title>
  </head>
  <body>
    Page Content Here
  </body>
</html>
  

Everything you see on this page is written inside the <html> tag.


Tip:

To view the <html> tag in use, right-click on this page and select "View Page Source".