--- title: slug: Web/HTML/Element/head tags: - HTML - 'HTML:Metadata content' translation_of: Web/HTML/Element/head ---

Sommario

L'elemento HTML <head> contiene informazioni generali (metadati) sul documento, inclusi il titolo e link a o definizioni di script e fogli di style.

Attributi

Questo elemento include gli attributi globali.

{{htmlattrdef("profile")}} {{obsolete_inline}}
Gli URI di uno o più profili di metadata, separati da uno spazio.

Esempio

<html>
  <head>
    <title>Titolo del documento</title>
  </head>
</html>

Note

La maggior parte dei browser costruisce automaticamente un elemento <head> se non è presente. Comunque, alcuni non lo fanno.
Questi browser non creano automaticamente un elemento <head>: Android <=1.6, iPhone <=3.1.3, Nokia 90, Opera <=9.27 e Safari <=3.2.1.

Specifiche

Specifica Stato Commenti
{{SpecName('HTML WHATWG', 'semantics.html#the-head-element', '<head>')}} {{Spec2('HTML WHATWG')}}  
{{SpecName('HTML5 W3C', 'document-metadata.html#the-head-element', '<head>')}} {{Spec2('HTML5 W3C')}}  profile obsoleto
{{SpecName('HTML4.01', 'struct/global.html#h-7.4.1', '<head>')}} {{Spec2('HTML4.01')}}  

Compatibilità con i browser

{{Compat("html.elements.head")}}

Vedi anche

{{HTMLRef}}