aside element
The HTML element for content related to, but separate from, the main content, such as a sidebar, exposed as the complementary landmark.
In more detail
Screen reader users can jump to it or skip it as a separate region. Sidebars are also a classic test for components: a card placed in a narrow sidebar needs a different layout than the same card in the wide main column, which container queries solve.
Related terms
- landmark — A region of a page, such as navigation, main content or footer, that assistive technology users can jump between.
- container query — A CSS rule, written with @container, that styles a component based on the size of its container instead of the whole viewport.
Taught in
- Semantic HTML Elements: Landmarks And Structure — Frontend Architecture & Web Platform
- Container Queries: Component-Driven Responsive Design — Frontend Architecture & Web Platform