By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

HTML Head Tag

Reference on the Head Element in HTML. Includes background information, and Example of use.

Edited: 2014-12-28 05:48

The html head tag, is used to markup the head part of html pages.

The head section holds the Title of the Document, and the meta tags such as:

  1. keywords
  2. Character Encoding
  3. Document Language
  4. Author
  5. Copyright

And many more.

HTML Head Example

<!DOCTYPE html>
<html lang="en">

  <head>
    <title>My first Website</title>
    <style type="text/css">

    html, body {
     height: 100%;
    }
    </style>
  </head>

  <body>
    <p>My first Website.</p>

  </body>

</html>

It may also link to External StyleSheet'(s), and/or contain Embedded Style'(s).