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 <iframe> srcdoc 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 <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 <html> element, as its first child.
Permitted ARIA roles None
DOM interface HTMLHeadElement

Atributos

Este elemento inclui os atributos globais.

profile
Os URIs de um ou mais perfis de metadados, separados por um espaço em branco.

Exemplo

<html>
  <head>
    <title>Document title</title>
  </head>
</html>

Notas

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ções

Especificação Estado Comentário
HTML Living Standard
The definition of '<head>' in that specification.
Living Standard No change from latest shapshot
HTML5
The definition of '<head>' in that specification.
Recommendation Obsoleted profile
HTML 4.01 Specification
The definition of '<head>' in that specification.
Recommendation  

Compatibilidade de navegador

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support 1Edge Full support YesFirefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
profile
DeprecatedNon-standard
Chrome Full support 1Edge Full support YesFirefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.

Consulte também

Etiquetas do documento e contribuidores

Contribuidores para esta página: jwhitlock, mansil
Última atualização por: jwhitlock,