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
|
---
title: '<head> : O elemento dos metadados (Cabeçalho) do documento'
slug: Web/HTML/Elemento/head
tags:
- Elemento
- HTML
- 'HTML:Metadata content'
- Referencia
- Web
translation_of: Web/HTML/Element/head
---
<div>{{HTMLRef}}</div>
<p>O <strong>elemento</strong> <strong><code><head></code> </strong>de <strong>HTML </strong>fornece a informação geral (metadados) sobre o documento, incluindo o seu título e hiperligações para as suas folhas de estilo e <em>scripts</em>.</p>
<table class="properties">
<tbody>
<tr>
<th><a href="/en-US/docs/Web/HTML/Content_categories">Categorias de conteúdo</a></th>
<td>None.</td>
</tr>
<tr>
<th>Permitted content</th>
<td>If the document is an {{HTMLElement("iframe")}} {{htmlattrxref("srcdoc", "iframe")}} document, or if title information is available from a higher level protocol, zero or more elements of metadata content.<br>
Otherwise, one or more elements of metadata content where exactly one is a {{HTMLElement("title")}} element.</td>
</tr>
<tr>
<th>Tag omission</th>
<td>The start tag may be omitted if the first thing inside the head element is an element.<br>
The end tag may be omitted if the first thing following the head element is not a space character or a comment.</td>
</tr>
<tr>
<th>Permitted parents</th>
<td>An {{HTMLElement("html")}} element, as its first child.</td>
</tr>
<tr>
<th>Permitted ARIA roles</th>
<td>None</td>
</tr>
<tr>
<th>DOM interface</th>
<td>{{domxref("HTMLHeadElement")}}</td>
</tr>
</tbody>
</table>
<h2 id="Atributos">Atributos</h2>
<p>Este elemento inclui os <a href="/pt-PT/docs/Web/HTML/Atributos_globais">atributos globais</a>.</p>
<dl>
<dt>{{htmlattrdef("profile")}} {{obsolete_inline}}</dt>
<dd>Os <em>URIs </em>de um ou mais perfis de metadados, separados por um espaço em branco.</dd>
</dl>
<h2 id="Exemplo">Exemplo</h2>
<pre class="brush: html"><html>
<head>
<title>Document title</title>
</head>
</html>
</pre>
<h2 id="Notas">Notas</h2>
<p>Modern, HTML5-compliant browsers automatically construct a <code><head></code> element if the tags are omitted in the markup. <a class="external" href="https://www.stevesouders.com/blog/2010/05/12/autohead-my-first-browserscope-user-test/">This behavior cannot be guaranteed in ancient browsers</a>.</p>
<h2 id="Especificações">Especificações</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Especificação</th>
<th scope="col">Estado</th>
<th scope="col">Comentário</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName('HTML WHATWG', 'semantics.html#the-head-element', '<head>')}}</td>
<td>{{Spec2('HTML WHATWG')}}</td>
<td>No change from latest shapshot</td>
</tr>
<tr>
<td>{{SpecName('HTML5 W3C', 'document-metadata.html#the-head-element', '<head>')}}</td>
<td>{{Spec2('HTML5 W3C')}}</td>
<td>Obsoleted <code>profile</code></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="Compatibilidade_de_navegador">Compatibilidade de navegador</h2>
<p class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
<p>{{Compat("html.elements.head")}}</p>
<h2 id="Consulte_também">Consulte também</h2>
<ul>
<li>Elements that can be used inside a <code><head></code> element: {{HTMLElement("title")}}, {{HTMLElement("base")}}, {{HTMLElement("link")}}, {{HTMLElement("style")}}, {{HTMLElement("meta")}}, {{HTMLElement("script")}}, {{HTMLElement("noscript")}}, {{HTMLElement("template")}}</li>
</ul>
|