Skip to content

Instantly share code, notes, and snippets.

@acidtone
Last active September 26, 2024 19:05
Show Gist options
  • Select an option

  • Save acidtone/4186780344d39f280f4d20720534737e to your computer and use it in GitHub Desktop.

Select an option

Save acidtone/4186780344d39f280f4d20720534737e to your computer and use it in GitHub Desktop.
<aside> element: What's it for?
<body>
<main>
<article>
<aside><!-- related to the article --></aside>
<section>
<aside><!-- related to the section --></aside>
<div>
<aside><!-- related to the section (not to the div!) --></aside>
</div>
</section>
</article>
<aside><!-- related to the body (not to the main!) --></aside>
</main>
<aside>
<!-- related to the body -->
<aside><!-- related to the (parent) aside --></aside>
</aside>
<nav>
<aside><!-- related to the nav --></aside>
</nav>
<footer>
<aside><!-- related to the footer --></aside>
</footer>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment