liveBook · Manning

Aside element

As explained in Web Design Playground

Content that is tangentially related to the main flow of a page, often presented as complementary or sidebar material.

The aside element marks content that supports the page without being part of its unique main content. Think of it as a helpful sidebar: site news, a social feed, or a related quotation. section 11.9

Use an aside in a few simple steps:

  • Place it inside the main element, often after the article element. section 11.9
  • Add it more than once when the page has several complementary areas. section 11.9
  • Treat mobile space as precious: hide a nonessential aside by default and reveal it at wider screen sizes with a media query. section 13.15

A compact article and sidebar

Build a main area with an article for the page’s primary content and an aside for a sidebar title and supporting paragraph. Style both columns with CSS; a sidebar generally uses no more than about 25 percent of the available width. section 11.19

<body>
    <header>
        …
    </header>
    <nav>
        …
    </nav>
    <main>
        <article>
            …
        </article>
        <aside>
            …
        </aside>
    </main>
    etc.
</body>

Browse the page outline to see the aside nested in main after the article. section 11.9

How Web Design Playground covers it

How deep it goes
Defines purpose, placement, repetition, responsive visibility, and column layout, but defers advanced layout to flexbox.
Examples
Uses site news, a social feed, a related quotation, and article-sidebar column layouts as concrete examples.
What it assumes
Assumes basic HTML page structure and CSS layout familiarity while demonstrating placement, widths, floats, and media queries.
What you can do after
Apply it via HTML and CSS to structure complementary content and show or hide optional sidebars across screen sizes.
How it connects
Connects the aside element with main element, article element, CSS media queries, floated columns, and flexbox.

Also explained in

Compare how 2 books explain aside element →

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.