What is the <aside> element in HTML?

The <aside> tag is used to write content that is not directly related to the main content. It acts like a side-note.

It is often placed on the side of the main content and can be styled using CSS.

Syntax

<aside> The indirectly related content goes here </aside>

Example

The code snippet below shows how the <aside> tag can be used in HTML. The example below shows that the <h1> behaves differently in the body and in the <aside> tag. This is because the browsers consider it not directly related to the web page’s main content.

New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved