HTML Head Element

The <head> element contains metadata and configuration for a webpage.
Its content is not displayed on the page.


Head Element Example

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Head Element</title>
</head>

Common Head Elements

  • <title>
  • <meta>
  • <link>
  • <style>
  • <script>

Important Notes

  • Only one <head> per page
  • Appears before <body>
  • Required for proper page behavior