1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
---
title: <section>
slug: Web/HTML/Element/section
translation_of: Web/HTML/Element/section
---
<h2 id="Sommario">Sommario</h2>
<p>L'<em>elemento HTML section</em> (<code><section></code>) rappresenta una sezione generica di un documento, ovvero un gruppo tematico di contenuti, tipicamente provvisto di un'intestazione. Ogni <code><section></code> dovrebbe essere identificabile, solitamente utlizzando un'intestazione ({{HTMLElement('h1')}}-{{HTMLElement('h6')}}) come fliglio dell'elemento <code><section></code></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 <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"><section>
<h1>Intestazione</h1>
<p>Contenuto</p>
</section>
</pre>
<h3 id="Esempio_2">Esempio 2</h3>
<h4 id="Prima">Prima</h4>
<div> </div>
<div>
<pre class="brush: html" style="font-size: 14px;"><div>
<h2>Intestazione</h2>
<img>Un'immagine</img>
</div></pre>
<div> </div>
<div>
<h4 id="Dopo" style="line-height: 18px; font-size: 1.28571428571429rem;">Dopo</h4>
<div> </div>
<div>
<pre class="brush: html" style="font-size: 14px;"><section>
<h2>Intestazione</h2>
<img>Un'immagine</img>
</section></pre>
</div>
</div>
</div>
<p> </p>
<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', '<section>')}}</td>
<td>{{Spec2('HTML WHATWG')}}</td>
<td> </td>
</tr>
<tr>
<td>{{SpecName('HTML5 W3C', 'sections.html#the-section-element', '<section>')}}</td>
<td>{{Spec2('HTML5 W3C')}}</td>
<td> </td>
</tr>
</tbody>
</table>
<h2 id="Compatibilità_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>
|