Can you nest an <article> in an <aside>? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you nest an <article> in an <aside>?

For things like widgets? Or would you use a <section>?

13th Jan 2017, 1:55 AM
Littlest Finch
Littlest Finch - avatar
5 Answers
+ 2
For things like widget, use of <section> or <div> is more compliant to Html5 semanctic logic recommendations ;)
13th Jan 2017, 7:26 AM
visph
visph - avatar
+ 2
@louis Milotte: I was answering to question "can you nest an <article> in an <aside>": I don't advise to not use <aside> element, but replace <article> by something else... In example: <aside> <section> <div>widget</div> <div>widget</div> <div>widget</div> </section> <section> <div>advertissement</div> <div>advertissement</div> </section> <section> <ul> <li>link</li> <li>link</li> <li>link</li> </ul> </section> </aside> ^^
13th Jan 2017, 12:28 PM
visph
visph - avatar
0
yes
13th Jan 2017, 2:02 AM
Jintu Kalita
Jintu Kalita - avatar
0
Technically, yes. Should you? No. <article> <header></header> <section></section><aside></aside> <footer></footer> </article>
13th Jan 2017, 2:13 AM
Louis Milotte
Louis Milotte - avatar
0
visph, aside has same functionality and is actually suggested by frameworks for html5.
13th Jan 2017, 12:05 PM
Louis Milotte
Louis Milotte - avatar