Difference btw <aside> tag and <section> tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Difference btw <aside> tag and <section> tag

Both work same under <article> Element

2nd Jun 2019, 4:13 AM
kabir
2 Answers
+ 9
section – Used for grouping together thematically-related content. Sounds like a div element, but it’s not. The div has no semantic meaning. Before replacing all your div’s with section elements, always ask yourself: “Is all of the content related?” aside – Used for tangentially related content. Just because some content appears to the left or right of the main content isn’t enough reason to use the aside element. Ask yourself if the content within the aside can be removed without reducing the meaning of the main content. Pullquotes are an example of tangentially related content. More information here : https://stackoverflow.com/questions/4781077/html5-best-practices-section-header-aside-article-elements https://www.quora.com/What-is-the-difference-between-section-and-aside-HTML5-tags Thanks
2nd Jun 2019, 4:23 AM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 1
Thankuuu
2nd Jun 2019, 4:30 AM
kabir