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

HTML HTML Basics Structuring Your Content Semantic HTML: <header>, <footer> and <section>

<section></section> tag

more definition of section tag? what is a <section> tag and when do you use it?

3 Answers

Steven Parker
Steven Parker
231,269 Points

The 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
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Seokhyun Wie
Full Stack JavaScript Techdegree Graduate 21,606 Points

Section 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.

As Steven said the section groups content together. This helps engines like Google better read and understand the structure of the document.

https://www.w3schools.com/tags/tag_section.asp