HTML Head Tag

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

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).

Post comment

Links that you insert are not nofollowed, but will be removed by admins if they are considered spam.

[url=Absolute URL for page]TITLE[/url]

You should insert code boxes around code examples, which will be automatically syntax highlighted.

[code1 html|css|javascript|php|sql]Your Code Here[/code1]

You may want to read our Privacy Policy before submitting your comment.