Basic HTML Document Structure

Every HTML document follows a basic structure that includes the !DOCTYPE declaration and essential tags like html, head, and body.

<!DOCTYPE html>
<html>
  <head>
    <title>Page Title</title>
  </head>
  <body>
    <h1>My First Heading</h1>
    <p>My first paragraph.</p>
  </body>
</html>
← PrevNext →