Semantic Layout Structure
Use modern HTML5 structure tags (header, nav, main, article, footer) to organize your page context for search engines.
Learning Goals
The Core Concept
In the early days of the web, developers used generic `<div>` boxes for everything. Modern HTML uses semantic tags which tell the browser and search engines exactly what each section of a page is. Tags like `<header>`, `<nav>`, `<main>`, `<article>`, `<section>`, `<aside>`, and `<footer>` describe their content's purpose. Using these tags improves accessibility, code structure, and helps your search engine ranking.
Visual guide
Html concept flow
A simple original diagram to connect the lesson idea with real project flow.
Code & Implementation
<header>
<h1>My Tech Blog</h1>
<nav>
<a href="/">Home</a> | <a href="/blog">Articles</a>
</nav>
</header>
<main>
<article>
<h2>Understanding HTML5</h2>
<p>Semantic tags describe their contents clearly...</p>
</article>
</main>
<footer>
<p>© 2026 TechIdea</p>
</footer>Expected Output
Logo & Nav Links at top Main article details in the middle Copyright text at the bottom
Build a Standard Page Outline
Hands-on practice task
The Challenge
Create a clean semantic page layout containing a header, a navigation block, a main content block with a single article, and a footer.
Helpful Hints
- •Use <header>, <nav>, <main>, <article>, and <footer> in order.
- •Do not worry about styling, just focus on nesting the tags.
Quick Knowledge Check
Do semantic tags look different on screen than div tags?
Should I replace every div with a semantic tag?
Continue Learning
Next steps after this lesson
Create a clean semantic page layout containing a header, a navigation block, a main content block with a single article, and a footer.
Ready to put your coding skills to the test?
Don't just read—write code! Use our free Try-Code Playground to experiment with real-time preview, or search utilities on our Developer Tools List.