CSS Portal

HTML <section> Tag

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Description

The <section> element in HTML represents a thematically grouped portion of content within a document. It is intended to organize content into discrete, self-contained sections that usually have a heading to identify the topic or purpose of that section. Unlike generic containers such as <div>, which have no semantic meaning, <section> conveys semantic structure, helping both developers and browsers - and particularly assistive technologies like screen readers - understand the logical divisions of a page.

A <section> is typically used for content that forms a distinct part of a document, such as:

  • Chapters or major divisions of an article.
  • A group of related topics in a blog post.
  • Sections of a product description or feature list.
  • Standalone areas in a web application that can be linked to or referenced individually.

Key Characteristics:

  1. Semantic Meaning <section> provides meaning to the content it wraps, signaling that the content forms a coherent, thematically related group. It is more meaningful than a <div> when the content has a specific purpose or topic.

  2. Heading Requirement Although not strictly required by HTML, it is considered best practice for a <section> to include a heading (<h1><h6>). The heading defines the topic of the section, making it easier for users and assistive technologies to navigate the content.

  3. Self-Contained Content Sections should ideally be self-contained; that is, they could stand on their own in terms of meaning. This makes <section> ideal for outlining articles, reports, or structured documents.

  4. Accessibility Benefits Screen readers and other assistive technologies can use the semantic information of <section> to provide a better navigation experience. Users can quickly skip between sections or understand the content hierarchy.

  5. SEO Advantages Proper use of <section> helps search engines understand the structure and topics of a page, potentially improving search indexing and relevance.

Example:

<section>
  <h2>Introduction to HTML</h2>
  <p>HTML stands for HyperText Markup Language and is the standard language for creating web pages.</p>
</section>

<section>
  <h2>HTML Elements</h2>
  <p>HTML elements form the building blocks of web pages, consisting of tags that define content structure.</p>
</section>

In this example, each <section> contains a heading and content related to that heading. The sections clearly divide the page into logical, meaningful units.

Properties

Permitted Parents
Any element that accepts flow content. Note that a <section> element must not be a descendant of an <address> element
Content
Block, inline and text
Start/End Tags
Start tag: required, End tag: required

Example

<section>
<h3>WWW</h3>
<p>WWW stands for 'World Wide Web'</p>
</section>

Attributes

None

Global Attributes

The <section> tag also supports the Global Attributes in HTML5

Event Attributes

The <section> tag also supports the Event Attributes in HTML5

Browser Support

The following information will show you the current browser support for the HTML <section> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.

This tag is supported by all modern browsers.
Desktop
Chrome
Edge
Firefox
Opera
Safari
Tablets & Mobile
Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-

Last updated by CSSPortal on: 26th December 2025

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!