{{ HTMLVersionHeader(5) }}
Sumário
O Elemento HTML Section (<section>
)representa uma seção de um documento genérico i.e., um agrupamento temático de conteúdo, geralmente com um título.
Cada <section> É normalmente identificada, incluindo um título (elemento h1-h6) como um filho do elemento <section>.
Usage notes :
- If it makes sense to separately syndicate the content of a {{HTMLElement("section")}} element, use an {{HTMLElement("article")}} element instead.
- Do not use the {{HTMLElement("section")}} element as a generic container; this is what {{HTMLElement("div")}} is for, especially when the sectioning is only for styling purposes. A rule of thumb is that a section should logically appear in the outline of a document.
contexto de uso
Permitted content: | Flow content |
Tag omission: | tanto a tag de início quanto a tag de fechamento são obrigatórias |
Permitted parent elements |
Qualquer elemento que aceita o fluxo de conteúdo. Note-se que um {{ Elemento HTML("section") }}não deve ser um descendente de um {{Elemento HTML("address") }} . |
Normative document | HTML5, section 4.4.2 |
Atributos
This element has no attributes other than the global attributes, common to all elements.
DOM Interface
This element implements the HTMLElement
interface.
Exemplos
<section> <h1>Heading</h1> <p>Bunch of awesome content</p> </section>
Compatibilidade
{{ CompatibilityTable() }}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | 5 | {{ CompatGeckoDesktop("2.0") }} | 9.0 | 11.10 | 4.1 |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | 2.2 | {{ CompatGeckoMobile("2.0") }} | 9.0 | 11.0 | 5.0 (iOS 4.2) |
veja também
- Outros elementos relacionados a section: {{ HTMLElement("body") }}, {{ HTMLElement("nav") }}, {{ HTMLElement("article") }}, {{ HTMLElement("aside") }}, {{ HTMLElement("h1") }}, {{ HTMLElement("h2") }}, {{ HTMLElement("h3") }}, {{ HTMLElement("h4") }}, {{ HTMLElement("h5") }}, {{ HTMLElement("h6") }}, {{ HTMLElement("hgroup") }}, {{ HTMLElement("header") }}, {{ HTMLElement("footer") }}, {{ HTMLElement("address") }};
- Sections and outlines of an HTML5 document.