--- title: '
: 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 ---O elemento <head> de HTML fornece a informação geral (metadados) sobre o documento, incluindo o seu título e hiperligações para as suas folhas de estilo e scripts.
| Categorias de conteúdo | None. |
|---|---|
| Permitted content | 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. Otherwise, one or more elements of metadata content where exactly one is a {{HTMLElement("title")}} element. |
| Tag omission | The start tag may be omitted if the first thing inside the head element is an element. The end tag may be omitted if the first thing following the head element is not a space character or a comment. |
| Permitted parents | An {{HTMLElement("html")}} element, as its first child. |
| Permitted ARIA roles | None |
| DOM interface | {{domxref("HTMLHeadElement")}} |
Este elemento inclui os atributos globais.
<html>
<head>
<title>Document title</title>
</head>
</html>
Modern, HTML5-compliant browsers automatically construct a <head> element if the tags are omitted in the markup. This behavior cannot be guaranteed in ancient browsers.
| Especificação | Estado | Comentário |
|---|---|---|
| {{SpecName('HTML WHATWG', 'semantics.html#the-head-element', '<head>')}} | {{Spec2('HTML WHATWG')}} | No change from latest shapshot |
| {{SpecName('HTML5 W3C', 'document-metadata.html#the-head-element', '<head>')}} | {{Spec2('HTML5 W3C')}} | Obsoleted profile |
| {{SpecName('HTML4.01', 'struct/global.html#h-7.4.1', '<head>')}} | {{Spec2('HTML4.01')}} |
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
{{Compat("html.elements.head")}}
<head> element: {{HTMLElement("title")}}, {{HTMLElement("base")}}, {{HTMLElement("link")}}, {{HTMLElement("style")}}, {{HTMLElement("meta")}}, {{HTMLElement("script")}}, {{HTMLElement("noscript")}}, {{HTMLElement("template")}}