The <aside>
tag is used to define content that is tangentially related to the content around it. It often appears as sidebars, pull quotes, or supplementary content. The <aside>
element helps in structuring the page in a meaningful way.
Use <aside>
to define content that complements the main content but isn't critical to its understanding. Itβs typically used for side content like advertisements, links, or additional information.
<aside> <h2>Related Links</h2> <p>Learn more about HTML and CSS on these resources: ...</p> </aside>
<!DOCTYPE html> <html> <head> <title>Aside Example</title> </head> <body> <article> <h2>Understanding HTML</h2> <p>HTML is the foundation of web development. Learn about its elements and structure.</p> </article> <aside> <h2>Recommended Reading</h2> <p>Check out these resources for a deeper dive into HTML and web development.</p> </aside> </body> </html>
<aside>
for tangential content that complements the main content<aside>
relevant but not essential to the main contentThe <aside>
tag is great for displaying supplementary content like sidebars, quotes, or links that provide additional context to the main page content.
Help others discover Technorank Learning by sharing your honest experience.
Your support inspires us to keep building!