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
|
---
title: <head>
slug: Web/HTML/Element/head
tags:
- HTML
- 'HTML:Metadata content'
translation_of: Web/HTML/Element/head
---
<h2 id="Sommario">Sommario</h2>
<p>L'<strong>elemento HTML <code><head></code></strong> contiene informazioni generali (metadati) sul documento, inclusi il titolo e link a o definizioni di script e fogli di style.</p>
<ul class="htmlelt">
<li><dfn><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">Categorie di contenuti</a></dfn> Nessuna.</li>
<li><dfn>Contenuti permessi</dfn>Se l'elemento è un {{HTMLElement("iframe")}} {{htmlattrxref("srcdoc", "iframe")}}, o se il titolo è disponibilie tramite un protocollo di livello superiore, zero o più elementi contenenti metadati.<br>
Altrimenti, uno o più elementi contenenti metadati dei quali esattamente uno è un elemento {{HTMLElement("title")}}.</li>
<li><dfn>Omissione del tag</dfn>Il tag iniziale può essere omesso se la prima cosa nell'elemento <code><head></code> è un altro elemento.<br>
Il tag finale può essere omesso se la prima cosa che segue l'elemento <code><head></code> non è uno spazio o un commento.</li>
<li><dfn>Elementi genitore permessi</dfn>Deve esse il primo figlio di un elemento {{HTMLElement("html")}}.</li>
<li><dfn>Interfaccia DOM</dfn> {{domxref("HTMLHeadElement")}}</li>
</ul>
<h2 id="Attributi">Attributi</h2>
<p><span style="line-height: 21px;">Questo elemento include gli </span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">attributi globali</a><span style="line-height: 21px;">.</span></p>
<dl>
<dt>{{htmlattrdef("profile")}} {{obsolete_inline}}</dt>
<dd>Gli URI di uno o più profili di metadata, separati da uno spazio.</dd>
</dl>
<h2 id="Esempio">Esempio</h2>
<pre class="brush: html"><html>
<head>
<title>Titolo del documento</title>
</head>
</html>
</pre>
<h2 id="Note">Note</h2>
<p>La maggior parte dei browser costruisce automaticamente un elemento <code><head></code> se non è presente. <a class="external" href="http://www.stevesouders.com/blog/2010/05/12/autohead-my-first-browserscope-user-test/" title="http://www.stevesouders.com/blog/2010/05/12/autohead-my-first-browserscope-user-test/">Comunque, alcuni non lo fanno</a>.<br>
Questi browser non creano automaticamente un elemento <code><head></code>: Android <=1.6, iPhone <=3.1.3, Nokia 90, Opera <=9.27 e Safari <=3.2.1.</p>
<h2 id="Specifications" name="Specifications">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', 'semantics.html#the-head-element', '<head>')}}</td>
<td>{{Spec2('HTML WHATWG')}}</td>
<td> </td>
</tr>
<tr>
<td>{{SpecName('HTML5 W3C', 'document-metadata.html#the-head-element', '<head>')}}</td>
<td>{{Spec2('HTML5 W3C')}}</td>
<td> <code>profile</code> obsoleto</td>
</tr>
<tr>
<td>{{SpecName('HTML4.01', 'struct/global.html#h-7.4.1', '<head>')}}</td>
<td>{{Spec2('HTML4.01')}}</td>
<td> </td>
</tr>
</tbody>
</table>
<h2 id="Browser_compatibility" name="Browser_compatibility">Compatibilità con i browser</h2>
<p>{{Compat("html.elements.head")}}</p>
<h2 id="Vedi_anche">Vedi anche</h2>
<ul>
<li>Elementi che possono essere usati nell'elemento <span style="font-family: Courier New;"><head></span>: {{HTMLElement("title")}}, {{HTMLElement("base")}}, {{HTMLElement("link")}}, {{HTMLElement("style")}}, {{HTMLElement("meta")}}, {{HTMLElement("script")}}, {{HTMLElement("noscript")}}, {{HTMLElement("command")}}</li>
</ul>
<div>{{HTMLRef}}</div>
|