+ 3

Can article and section be nested inside each other? How do they behave and what's the basic difference between them?

30th May 2020, 4:13 AM
Pushpraj Dwivedi
Pushpraj Dwivedi - avatar
3 Réponses
+ 4
Html5 header, article, section, aside, footer tags behaves just like plain div tag. They are used for giving hints to SEO, screen readers what type of content the divisions contain. "Nesting <article> in <section> or Vice Versa?" section here: https://www.w3schools.com/html/html5_semantic_elements.asp clearly answers your question.
30th May 2020, 10:54 AM
Mahmud Nabil
Mahmud Nabil - avatar
+ 3
Yesss It will just show a big box having your text written in article and the text of section will be inside another box in that big box... You can try it by using different colors of background for both...
30th May 2020, 4:16 AM
Namit Jain
Namit Jain - avatar
+ 1
Use span tag with float css selector https://code.sololearn.com/WG5ferTgdbA6/?ref=app
30th May 2020, 4:46 AM
Calviղ
Calviղ - avatar