Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Omar Emara
18,249 PointsWhat does the <section> element do?
What does the <section> element do?
1 Answer
Jonathan Grieve
Treehouse Moderator 91,254 PointsHi Omar.
The section element serves the same purpose as the div element and is simply a container for a piece of content.
But when HTML5 was released it introduced what were called Semantic elements. section, article, aside, header and footer.
So
<section> <!-- HTML CONTENT --><div>
is the same as
<div><!-- HTML CONTENT --></div>
its just a way of better organising our HTML code. :-)
Omar Emara
18,249 PointsOmar Emara
18,249 PointsThanks very much!! :D