--- title:
slug: Web/HTML/Element/section tags: - Element - HTML - HTML sections - Reference - Web translation_of: Web/HTML/Element/section ---

{{HTMLRef}}

L'element HTML <section> representa una secció genèrica d'un document, és a dir, una agrupació temàtica de continguts, normalment amb un capçalera. Cada <section> ha d'estar identificada, mitjançant la inclusió d'una capçalera (element {{HTMLElement('h1')}}-{{HTMLElement('h6')}}) com un fill de l'element <section>.

Notes d'ùs :

Categories de contingut Contingut dinàmic, contingut  secció, contingut palpable.
Contingut permès Contingut dinàmic.
Omissió de l'etiqueta {{no_tag_omission}}
Elements pares permesos Qualsevol element que accepti Contingut dinàmic. Tingueu en compte que un element {{HTMLElement("section")}} no ha de ser un descendent d'un element {{HTMLElement("address")}}.
Interfície DOM {{domxref("HTMLElement")}}

Atributs

Aquest element només inclou els atributs global.

Exemple 1

Abans

<div>
  <h1>Heading</h1>
  <p>Bunch of awesome content</p>
</div>

Després

<section>
  <h1>Heading</h1>
  <p>Bunch of awesome content</p>
</section>

Exemple 2

Abans

<div>
  <h2>Heading</h2>
  <img src="bird.jpg" alt="bird">
</div>

Després

<section>
  <h2>Heading</h2>
  <img src="bird.jpg" alt="bird">
</section>

Especificacions

Especificació Estat Comentari
{{SpecName('HTML WHATWG', 'sections.html#the-section-element', '<section>')}} {{Spec2('HTML WHATWG')}}  
{{SpecName('HTML5.1', 'sections.html#the-section-element', '<section>')}} {{Spec2('HTML5.1')}}  
{{SpecName('HTML5 W3C', 'sections.html#the-section-element', '<section>')}} {{Spec2('HTML5 W3C')}}  
{{CompatibilityTable}}
Característica Chrome Firefox (Gecko) Internet Explorer Opera Safari
Suport bàsic 5 {{CompatGeckoDesktop("2.0")}} 9.0 11.10 4.1
Característica Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Suport bàsic 2.2 {{CompatGeckoMobile("2.0")}} 9.0 11.0 5.0 (iOS 4.2)

Veure