Example 1 — Minimal Document Structure
Every page needs html, head, and one body.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document title</title>
</head>
<body>
<p>
The <code><body></code> element holds the content of the page.
</p>
</body>
</html> How It Works
- Start with
<!DOCTYPE html>and the<html>root. - Put metadata in
<head>(charset, title). - Put visible content in
<body>— only one per document. - Close both tags so the structure stays clear for humans and tools.

