liveBook · Manning

Aside element

As explained in Build a Website with ChatGPT

The aside element is an HTML element that represents content indirectly related to the document's main content, such as a sidebar.

The aside element marks content indirectly related to a page’s main content. It commonly creates a sidebar beside an article. section 12.2.3

Use an aside for related supporting content, such as:

Related guides sidebar

<aside> <h3>Related Guides</h3> <!-- Related guides go here --> </aside> Add paragraphs, links, or additional headings below the placeholder. section 12.3

For a two-column article page, place the aside after the article and use CSS Grid. To move it left, place it before the article and change the columns from 2fr 1fr to 1fr 2fr. section 12.2.10 section 12.5

How Build a Website with ChatGPT covers it

How deep it goes
Defines purpose, placement, common contents, generated markup, manual editing, and CSS Grid customization.
Examples
Uses related-guide links, site news, social media feeds, advertisements, and a Travel Guide to Narnia sidebar.
What it assumes
Assumes basic HTML page structure while demonstrating the element’s role and introducing its relationship to article content.
What you can do after
Build it from scratch by adding a titled sidebar, filling its placeholder, and repositioning it with HTML and CSS Grid.
How it connects
Connects the aside element with the main element, article element, CSS Grid, HTML headings, and responsive page layouts.

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 Build a Website with ChatGPT. The section links point to the parts of the book it draws on.