Document Structure & Semantic Elements
Every web page is an HTML document: a tree of nested elements. Semantic elements (<header>, <nav>, <main>, <article>, <footer>) describe the meaning of content, not just its appearance — this helps browsers, search engines, and screen readers understand your page.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Page</title>
</head>
<body>
<header><nav>Navigation links</nav></header>
<main>
<h1>Page Heading</h1>
<p>Body content goes here.</p>
</main>
<footer>© 2026</footer>
</body>
</html>