<aside> tag OR <section> tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

<aside> tag OR <section> tag

It says in a lesson that <aside> tag can be used within <article> tag. "When an <aside> tag is used within an <article> tag, the content of the <aside> should be specifically related to that article." Why isn't the <section> tag used for that purpose? Shouldn't the aside element used only in the outside of the <article> tag? If <aside> and <section> tags can be used both within and outside of the <article> tag then what makes them different?

3rd Oct 2016, 9:54 PM
Umar Munir
Umar Munir - avatar
1 Answer
+ 1
There is no difference between them besides the differing names. All of them are block elements, just like a div.
12th Nov 2016, 12:58 AM
Ben
Ben - avatar