0

difference

what is the difference between Aside and Section?

25th Jul 2018, 3:18 PM
Shivangi Gupta
Shivangi Gupta - avatar
2 Respostas
+ 11
<aside> and <section> (as well as <header>, <footer>, <nav>, and <article>) are alternate names for <div>. These names were added in HTML5 because divs are usually used for these purposes. Each of them can be interacted with separately in CSS and JS.
25th Jul 2018, 3:28 PM
Tamra
Tamra - avatar
+ 2
https://www.w3schools.com/htmL/html5_semantic_elements.asp Aside is intended to be used for information that is somewhat relevant to the main topic being discussed, but is held off to the side so it feels more optional to read (like a definition, quote, or advertisement) and less distracting. Section is good for grouping things together (like if you had 2 paragraphs and a chart on market outlook and 3 paragraphs and a table describing competition, you may want to have a section for each). All of it is at your discretion.
25th Jul 2018, 3:37 PM
Janning⭐
Janning⭐ - avatar