Back to HTML

HTML Tutorial

Document Structure

Understand the basic skeleton of an HTML document.

Every HTML document starts with a doctype and contains html, head, and body sections.

The head stores page information for the browser. The body contains the visible page content.

code
<!DOCTYPE html>
<html>
  <head>
    <title>My First Page</title>
  </head>
  <body>
    <h1>Hello World</h1>
  </body>
</html>