<section>: The SECTION Element
Last updated: 2026-10-13
<section>The SECTION Element
Represents a standalone section of content, usually with a heading. Good for grouping related content.
| Category | Semantic |
|---|---|
| Content Model | Flow content |
| Allowed Parents | Any element that accepts flow content |
| Content Tag | Yes — requires closing </section> tag |
| Status | Standard |
📝 Syntax
<section>section content</section>
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <section> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: If it's purely for styling, use div; use section only when there is real sectioning semantics.
❓ FAQ
QWhat is the difference between section and div?
A
<section> is a thematic grouping that almost always deserves a heading (h2-h6); <div> has no semantics and exists purely for layout and styling. If the content forms its own topic and needs a heading, use section; if it is just a layout wrapper, use div.QHow do I choose between section and article?
AContent that stands alone and still makes sense off the page (posts, comments, product cards) uses
<article>; chapter-like groupings (Introduction, Usage, FAQ) use <section>. When unsure, section is the more conservative choice.QDoes section need a heading?
AStrongly recommended. The spec says the section's topic should normally appear in a heading; a headingless section is semantically vague in the document outline. If no heading is warranted, it probably should be a
<div>.🏷️ Related Tags
💡 Related Cases
More case studies coming soon — check back later.