HTMLHTML12 min read

HTML Basic

Your first complete HTML page with doctype, head, title, and body.

David Miller
November 23, 2025
7.1k289

A correct HTML page has a basic structure.

Basic template

<!doctype html>
<html>
  <head>
    <title>Page Title</title>
  </head>
  <body>
    <h1>My Heading</h1>
    <p>My paragraph.</p>
  </body>
</html>

What each part does (simple)

  • doctype: tells browser it is HTML5
  • html: wraps everything
  • head: page info (title etc)
  • body: visible content

Preview

My Heading
My paragraph.

Practice

Change the heading text and refresh the browser.

#HTML#Beginner