The HTML <section> tag

Definition and Usage

<section> A tag defines a part of a document.

See also:

HTML DOM Reference Manual:Section Object

Example

Two parts in the document:

<section>
<h2>History of WWF</h2>
<p>The World Wide Fund for Nature (WWF) is an international organization dedicated to environmental protection, research, and restoration issues, and its predecessor is the World Wildlife Fund. The World Wide Fund for Nature was founded in 1961.</p>
</section>
<section>
<h2>WWF's Logo</h2>
<p>The panda has become the symbol of the World Wildlife Fund. The famous panda logo of WWF originated from a panda named 'Qiqi', who was transferred from the Beijing Zoo to the London Zoo in the same year as the founding of WWF.</p>
</section>

Try It Yourself

Global Attributes

<section> The tag also supports Global Attributes in HTML.

Event Attributes

<section> The tag also supports Event Attributes in HTML.

Default CSS Settings

Most browsers will display the following default values <section> Element:

section {
  display: block;
}

Try It Yourself

Browser Support

The numbers in the table indicate the first browser version to fully support this attribute.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
5.0 9.0 4.0 5.0 11.5