<head>: the "document metadata (header)" element

The HTML <head> element contains machine-readable information about the document (metadata), such as title, script, and style sheets.

Note: <head> contains information primarily for machine processing, not human readability. For human-visible information, such as top-level headers and listed authors, see the <header> element.

Attributes

profile

The URIs of one or more metadata profiles, separated by whitespace.

Example

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

Notes

HTML5-compliant browsers automatically create a <head> element if its tags are omitted in the markup. This automatic creation is not guaranteed in ancient browsers.

See also

Elements that can be used within <head>:

  • <title>
  • <base>
  • <link>
  • <style>
  • <meta>
  • <script>
  • <noscript>
  • <template>