HTML <aside> Element

The <aside> element represents content that is indirectly related to the content around it. It is commonly used for sidebars, supplemental information, related links, pull quotes, and other content that can be considered separate from the main content.

Syntax

<aside>
  Related content
</aside>

The opening and closing tags are both required.

Attributes

The <aside> element supports the global HTML attributes. It does not have any element-specific attributes.

Example

The following example uses an <aside> to provide additional information related to an article:

<article>
  <h2>Growing Tomatoes at Home</h2>
  <p>Tomatoes grow best in a sunny location with well-drained soil.</p>

  <aside>
    <h3>Gardening Tip</h3>
    <p>Most tomato plants need at least six hours of direct sunlight each day.</p>
  </aside>

  <p>Water the plants regularly and keep the soil evenly moist.</p>
</article>

The gardening tip is related to the article but is separate from its primary content.

Try It Yourself

Edit the content inside the <aside> element to create your own supplemental information related to the article.

Play in Editor

Usage Notes

Use the <aside> element for content that is related to the surrounding content but is not essential to understanding its main subject.

Common uses include sidebars, related links, additional background information, pull quotes, and other supplemental material.

An <aside> placed inside an <article> should relate specifically to that article. An <aside> outside an article can contain information related more broadly to the page or website.

Do not use <aside> simply because content is visually positioned at the side of a page. The element describes the meaning and relationship of the content, not its visual placement.

Accessibility

When an <aside> contains a distinct group of supplemental information, a descriptive heading can help visitors understand its purpose and relationship to the surrounding content.

Do not rely on visual placement alone to indicate that content is supplemental. The semantic <aside> element helps communicate that relationship independently of the page layout.

Browser Support

Baseline: Widely available indicates a feature has been supported by core browsers for at least 30 months. At this stage, the feature is considered stable and safe for most websites to use without needing to worry about compatibility issues or fallbacks, as it is supported by the vast majority of users' devices and browser versions.

For detailed browser compatibility information, see Can I Use: HTML <aside> Element .

<article> - Represents independent, self-contained content.

<section> - Represents a thematic section of a document.

<main> - Represents the dominant content of the document.

Specifications

HTML Living Standard: The <aside> Element