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
201,976 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>.

Brandon Seokhyun Wie
Brandon Seokhyun Wie
Full Stack JavaScript Techdegree Graduate 21,586 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 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.