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 trialChaben Alagbay
2,704 Points<section></section> tag
more definition of section tag? what is a <section> tag and when do you use it?
3 Answers
Steven Parker
231,236 PointsThe HTML <section> element is a generic semantic container which is handy for grouping page content that doesn't have a more specific semantic element to represent it (like a "nav" or "article").
For more details, see this MDN page on <section>.
Seokhyun Wie
Full Stack JavaScript Techdegree Graduate 21,606 PointsSection tag defines the section of documents such as chapters, headers, footers or any other sections. The section tag divides the content into section and subsections. The section tag is used when requirements of two headers or footers or any other section of documents needed. Section tag grouped the generic block of related contents. The main advantage of the section tag is, it is a semantic element, which describes its meaning to both browser and developer.
- from geeksforgeeks.org Hope you find it helpful.
jlampstack
23,932 PointsAs Steven said the section groups content together. This helps engines like Google better read and understand the structure of the document.