Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 587205 of <section>

  • Slug della versione: HTML/Element/section
  • Titolo della versione: <section>
  • ID versione: 587205
  • Data di creazione
  • Autore: klez
  • Versione corrente? No
  • Commento lowercased words after colons, etc.

Contenuto della versione

{{HTMLVersionHeader("5")}}

Sommario

L'elemento HTML section (<section>) rappresenta una sezione generica di un documento, ovvero un gruppo tematico di contenuti, tipicamente provvisto di un'intestazione.

Note d'uso :

  • Se ha senso aggregare il contenuto di un elemento {{HTMLElement("section")}}, è preferibile usare un elemento {{HTMLElement("article")}} al suo posto.
  • Si sconsiglia di usare l'elemento {{HTMLElement("section")}} come contenitore generico; a questo scopo è preferibile usare {{HTMLElement("div")}}, soprattutto quando la suddivisione in sezioni viene solamente effettuata a scopo stilistico. La regola generale è che una sezione debba apparire logicamente nell'indice di un documento.

Attributi

Questo elemento include solo gli attributi globali.

Esempi

<section>
  <h1>Intestazione</h1>
  <p>Contenuto</p>
</section>

Specifiche

Specifica Stato Commenti
{{SpecName('HTML WHATWG', 'sections.html#the-section-element', '<section>')}} {{Spec2('HTML WHATWG')}}  
{{SpecName('HTML5 W3C', 'sections.html#the-section-element', '<section>')}} {{Spec2('HTML5 W3C')}}  

Compatibilità con i browser

{{CompatibilityTable}}
Funzionalità Chrome Firefox (Gecko) Internet Explorer Opera Safari
Supporto di base 5 {{CompatGeckoDesktop("2.0")}} 9.0 11.10 4.1
Funzionalità Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Supporto di base 2.2 {{CompatGeckoMobile("2.0")}} 9.0 11.0 5.0 (iOS 4.2)

Vedi anche

  • Altri elementi correlati alle sezioni: {{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")}};
  • Sezioni e indici nei documenti HTML5.
{{HTMLRef}}

Sorgente della versione

<div>
 {{HTMLVersionHeader("5")}}</div>
<h2 id="Sommario">Sommario</h2>
<p>L'<em>elemento HTML section</em> (<code>&lt;section&gt;</code>) rappresenta una sezione generica di un documento, ovvero un gruppo tematico di contenuti, tipicamente provvisto di un'intestazione.</p>
<div class="note">
 <p><em>Note d'uso :</em></p>
 <ul>
  <li>Se ha senso aggregare il contenuto di un elemento {{HTMLElement("section")}}, è preferibile usare un elemento {{HTMLElement("article")}} al suo posto.</li>
  <li>Si sconsiglia di usare l'elemento {{HTMLElement("section")}} come contenitore generico; a questo scopo è preferibile usare {{HTMLElement("div")}}, soprattutto quando la suddivisione in sezioni viene solamente effettuata a scopo stilistico. La regola generale è che una sezione debba apparire logicamente nell'indice di un documento.</li>
 </ul>
</div>
<ul class="htmlelt">
 <li><dfn><a href="/docs/Web/HTML/Content_categories">Categorie di contenuti</a></dfn><a href="/docs/Web/HTML/Content_categories#Flow_content">contenuti di flusso</a>, <a href="/docs/Web/HTML/Content_categories#Sectioning_content">contenuti di sezionamento</a>, contenuti palpabili.</li>
 <li><dfn>Contenuti permessi</dfn> <a href="/docs/Web/HTML/Content_categories#Flow_content">contenuti di flusso</a>.</li>
 <li><dfn>Omissione del tag</dfn> {{no_tag_omission}}</li>
 <li><dfn>Elementi genitore permessi</dfn>qualsiasi elemento che accetti&nbsp; <a href="/docs/Web/HTML/Content_categories#Flow_content">contenuti di flusso</a>. Notare che un elemento {{HTMLElement("section")}} non può essere discendente di un elemento {{HTMLElement("address")}}.</li>
 <li><dfn>Interfaccia DOM</dfn> {{domxref("HTMLElement")}}</li>
</ul>
<h2 id="Attributi">Attributi</h2>
<p>Questo elemento include solo gli <a href="/docs/Web/HTML/Global_attributes">attributi globali</a>.</p>
<h2 id="Esempi">Esempi</h2>
<pre class="brush: html">
&lt;section&gt;
  &lt;h1&gt;Intestazione&lt;/h1&gt;
  &lt;p&gt;Contenuto&lt;/p&gt;
&lt;/section&gt;
</pre>
<h2 id="Specifiche">Specifiche</h2>
<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specifica</th>
   <th scope="col">Stato</th>
   <th scope="col">Commenti</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('HTML WHATWG', 'sections.html#the-section-element', '&lt;section&gt;')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>&nbsp;</td>
  </tr>
  <tr>
   <td>{{SpecName('HTML5 W3C', 'sections.html#the-section-element', '&lt;section&gt;')}}</td>
   <td>{{Spec2('HTML5 W3C')}}</td>
   <td>&nbsp;</td>
  </tr>
 </tbody>
</table>
<h2 id="Compatibilit.C3.A0_con_i_browser">Compatibilità con i browser</h2>
<div>
 {{CompatibilityTable}}</div>
<div id="compat-desktop">
 <table class="compat-table">
  <tbody>
   <tr>
    <th>Funzionalità</th>
    <th>Chrome</th>
    <th>Firefox (Gecko)</th>
    <th>Internet Explorer</th>
    <th>Opera</th>
    <th>Safari</th>
   </tr>
   <tr>
    <td>Supporto di base</td>
    <td>5</td>
    <td>{{CompatGeckoDesktop("2.0")}}</td>
    <td>9.0</td>
    <td>11.10</td>
    <td>4.1</td>
   </tr>
  </tbody>
 </table>
</div>
<div id="compat-mobile">
 <table class="compat-table">
  <tbody>
   <tr>
    <th>Funzionalità</th>
    <th>Android</th>
    <th>Firefox Mobile (Gecko)</th>
    <th>IE Mobile</th>
    <th>Opera Mobile</th>
    <th>Safari Mobile</th>
   </tr>
   <tr>
    <td>Supporto di base</td>
    <td>2.2</td>
    <td>{{CompatGeckoMobile("2.0")}}</td>
    <td>9.0</td>
    <td>11.0</td>
    <td>5.0 (iOS 4.2)</td>
   </tr>
  </tbody>
 </table>
</div>
<h2 id="Vedi_anche">Vedi anche</h2>
<ul>
 <li>Altri elementi correlati alle sezioni: {{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")}};</li>
 <li><a href="/docs/Sections_and_Outlines_of_an_HTML5_document">Sezioni e indici nei documenti HTML5</a>.</li>
</ul>
<div>
 {{HTMLRef}}</div>
Ripristina questa versione