Good semantic choice
<section>
<h2>Lesson topic</h2>
</section>
modern front end tech
Understand the page skeleton every browser expects before it shows your content.
An HTML document is organized into a few important parts. The browser reads the setup in the head and displays the content from the body.
The document starts with <!DOCTYPE html>. After that, the <html> element wraps the full page.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My page</title>
</head>
<body>
<h1>Hello HTML</h1>
<p>This content is visible in the browser.</p>
</body>
</html>
The <head> element stores information the browser needs before showing the page. This includes the title, character encoding, viewport settings, favicons, stylesheets, and some scripts.
<head>
<meta charset="UTF-8">
<title>HTML Structure</title>
<link rel="stylesheet" href="styles.css">
</head>
The <body> element contains headings, paragraphs, images, links, buttons, forms, and other visible content.
<body>
<header>Page intro</header>
<main>Main lesson content</main>
<footer>Copyright information</footer>
</body>
The <div> element is a generic container. It is useful for grouping content, but semantic elements like <header>, <main>, <section>, and <footer> should be used when they describe the content better.
<section>
<h2>Lesson topic</h2>
</section>
<div class="card">
<p>Reusable card content</p>
</div>
Before adding details, create the doctype, html, head, and body. That structure gives every lesson page a stable base.