HTML <section> tag

Definitie en gebruik

<section> Een tag definieert een deel van een document.

Zie ook:

HTML DOM referentiehandleiding:Section object

Voorbeeld

Twee delen van het document:

<section>
<h2>Historie van WWF</h2>
<p>De Wereld Natuur Fonds (WWF) is een internationale organisatie die zich toelegt op het beschermen, onderzoeken en herstellen van milieuproblemen, en die oorspronkelijk bekend stond als de Wereld Wildleven Fonds. Het WWF werd in 1961 opgericht.</p>
</section>
<section>
<h2>The WWF 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 establishment 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