liveBook · Manning

Semantic markup

As explained in Web Design Playground

An HTML5 structural element used to organize page content into semantic sections such as header, navigation, main content, article, aside, section, and footer.

Semantic markup gives page regions names that describe their jobs. Instead of building everything from anonymous <div> and <span> elements, HTML5 helps browsers, search crawlers, screen readers, and fellow developers recognize the page’s structure. section 11.3 section 16.1

Think of a web page like a small venue with clearly labeled rooms:

  • <header> introduces a page or region; <nav> holds navigation links; and <main> identifies the central content. section 11.3
  • <article> groups a self-contained piece of content, while <section> groups a distinct part of a page or article. section 11.3 section 11.11
  • <aside> marks supporting content such as a sidebar, and <footer> closes a page or region with finishing information. section 11.3 section 11.11

A labeled page skeleton

<header>Site Title</header> <nav>Page links</nav> <main> <article> <section><h2>Article Title</h2><p>Article paragraph</p></section> <aside>Sidebar information</aside> </article> </main> <footer>Copyright and social links</footer> The labels make the layout easier to understand before CSS changes its visual arrangement. Try replacing a collection of generic containers in a small page with these meaningful regions. section 11.11 section 15.7 section 20.6

<header>
    <img src="logo.tif" alt="Our logo">
    <h1>Site Title</h1>
</header>
<nav>
    <ul>
        <li>Item 1</li>
        etc.
    </ul>
</nav>    
<main>
    <article>
        <section>
            <h2>Article Title</h2>
            <p>Article paragraph</p>
            etc.
        </section>
        <aside>
            <p>Sidebar paragraph</p>
            etc.
        </aside>
    </article>
</main>
<footer>
    <p>Footer paragraph</p>
    etc.
</footer>

Explore the complete labeled layout, including a logo, navigation list, article content, section heading, sidebar, and footer. section 11.11

How Web Design Playground covers it

How deep it goes
Defines seven core HTML5 layout elements and demonstrates their nesting, while leaving detailed styling and layout strategies to CSS.
Examples
Uses holy-grail layouts, photo galleries, portfolio pages, navigation lists, article sections, sidebars, logos, and footers.
What it assumes
Assumes basic HTML and CSS foundations, then applies familiar page-building skills to overall structure and organization.
What you can do after
Apply it via HTML5 elements to build page structures that communicate the meaning and organization of their content.
How it connects
Connects semantic markup with HTML5, page layout, accessibility, screen readers, search-engine crawlers, CSS floats, and inline-block layout.

Also explained in

Compare how 4 books explain semantic markup →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Web Design Playground. The section links point to the parts of the book it draws on.