HTML <html> Tag Example

HTML Code:

<!DOCTYPE html>
<html>
  <head>
    <title>My First Web Page</title>
  </head>

  <body>
    <h1>Hello, World!</h1>
    <p>This content is inside the HTML document.</p>
  </body>
</html>
    

Output in Browser:

Hello, World!

This content is inside the HTML document.

Note: The <html> tag is the **root element** of any HTML document. All the visible content (inside <body>) and invisible metadata (inside <head>) must be written inside the <html> tag.