๐Ÿš€ LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
๐ŸŽ“ COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.
HTML MASTER CLASS /// LEARN TAGS /// BUILD STRUCTURE /// SEMANTIC WEB /// HTML MASTER CLASS /// LEARN TAGS ///
โšก Total XP: 0|๐Ÿ’ป html XP: 0

HTML Semantic Landmarks: Document Architecture

Master semantic document outlines. Replace generic div containers with rigorous structural tags like main, article, and aside to guarantee programmatic accessibility and SEO dominance.

LOADING ENGINE...

Skill Matrix

UNLOCK NODES BY LEARNING NEW TAGS.

Semantics Node

Meaningful Page Architecture.


Before HTML5, the web was built using 'Div Soup'โ€”a chaotic sea of generic `<div>` tags. While this achieved visual layouts via CSS, it provided absolutely zero structural meaning to the browser. Today, we build professional architecture using HTML5 Semantic Landmarks.

1The Singular Core: `<main>`

The foundation of any accessible document is the <main> tag. This tag operates under a strict architectural rule: there must only be ONE visible <main> tag per HTML document.

It serves as the singular container for the primary, unique content of the page. It must NOT contain globally repeated elements like site-wide navigation bars, copyright footers, or persistent sidebars. For visually impaired users operating screen readers, the <main> tag provides a programmatic shortcut to instantly bypass boilerplate UI and jump straight to the actual content.

โœ•
โˆ’
+
<!-- Global Layout Architecture -->
<header><!-- Site Logo & Nav --></header>

<!-- The Singular Unique Content -->
<main>
  <h1>Today's Article</h1>
  <p>Core narrative data...</p>
</main>

<footer><!-- Copyright --></footer>
localhost:3000
๐Ÿ”Š
Screen Reader Event
"Landmark: Main Content"

2Isolation: Article vs. Section

The distinction between <article> and <section> dictates how crawlers process your data payload.

An <article> designates content that is completely self-contained. If you extract this block and paste it onto a different website, it still makes perfect sense (e.g., a blog post, a news card, a product review).

A <section> designates thematic grouping that requires external context. A 'Features' block or a 'Testimonials' grid makes sense on your landing page, but isolated on its own, it loses narrative coherence.

โœ•
โˆ’
+
<!-- Independent Payload -->
<article>
  <h2>Breaking: AI Evolves</h2>
  <p>Full news story details...</p>
</article>

<!-- Dependent Payload -->
<section>
  <h2>Related Links</h2>
  <!-- Requires the article above to make sense -->
</section>
localhost:3000
Valid: Syndicating an <article> to an RSS feed.
Invalid: Syndicating a dependent <section>.

3Tangential Contexts: `<aside>`

Not all content is mission-critical to the immediate narrative. The <aside> tag classifies data blocks that are 'tangentially related'.

Architecturally, this means sidebars, advertisement grids, or pull quotes. If you strip the <aside> entirely out of the DOM, the primary <main> narrative must still function perfectly. By flagging this data as <aside>, screen readers know they can safely skip it if the user is focused strictly on the core reading material.

โœ•
โˆ’
+
<!-- Primary Flow -->
<article>
  <p>We discovered a new exoplanet today...</p>

  <!-- Tangential Flow -->
  <aside>
    <h3>About the Author</h3>
    <p>Dr. Smith is an astrophysicist...</p>
  </aside>
</article>
localhost:3000
Primary Read Flow
Skippable Sidebar

?Frequently Asked Questions

Pascual Vila

Pascual Vila

Frontend Instructor // Code Syllabus

Lesson Glossary

[01]Semantic HTML

Using tags that convey the meaning of the content to both the browser and the developer.

Code Preview
Meaning

[02]header

The introductory section of a page or a part of a page.

Code Preview
<header>

[03]nav

Represents a section with navigation links.

Code Preview
<nav>

[04]main

Specifies the primary, unique content of the document.

Code Preview
<main>

[05]article

A self-contained composition that is independently distributable or reusable.

Code Preview
<article>

[06]section

A thematic grouping of content, typically with a heading.

Code Preview
<section>

[07]aside

Represents a portion of a document whose content is only indirectly related to the main content.

Code Preview
<aside>

[08]footer

The closing section of a document, typically containing metadata and copyright.

Code Preview
<footer>

Continue Learning