HTML: section

The <section> element groups content that shares a theme, usually with its own heading.

What you will learn

Minimal example

<section>
  <h2>Shipping information</h2>
  <p>Orders leave our warehouse on weekdays.</p>
</section>

Use <section> for a thematic part of a page. Use <article> when the content is an independent item, and use <div> when no semantic grouping applies.

Common mistakes