Melda S
Melda S

Reputation: 141

Correct HTML5 way of defining a left/right sidebars alongside main content

I am looking at having 2 sidebars for my content with various boxes, both left and right.

With correctly written HTML5 layouts, should these be defined as aside or perhaps as divs or maybe even a section?

[Left Column,Main Site Content,Right Column]

Upvotes: 0

Views: 287

Answers (1)

Jeroen Bellemans
Jeroen Bellemans

Reputation: 2035

I'd suggest to use aside and give a class to the each aside.

<aside class="left"></aside>

<section>

    <article>

    </article>

</section>

<aside class="right"></aside>

Upvotes: 1

Related Questions