Can I have an article and aside in a section?

Hi there,

I am putting together a simple layout and wondered if I can have the following:

<section>
<article>text</article>
<aside>links</aside>
</section>

or should the aside be outside of the section?

Thanks

It depends on the semantics of the content :grinning:.

If the links relate only to that article then consider using:

<article>
<p>Text</p>
<aside>
<a href="...">Link1</a>
<a href="...">Link2</a>
</aside>
</article>

If your <body> contains only one <section> consider using <main> instead.

3 Likes