The <head> tag is a part of basic structure of HTML documents. It is intended for keeping technical and some other data of web-page. These do not show on the screen (except for <title> tag).

List of tag's which are placed inside <head> tag.
<base> Determines a base address of current document. It has two attributes:
 href - the address which should be used for the creation of a full path to files.
 target - the name of window or frame where links will be open.
<basefont> Determines a default font of document. It has three attributes: color - determines color of the text
face - determines a face of font.
size - determines a size of font (may have values from 1 to 7). Default value is 3.
<link> Links an internal file to a HTML document (for example, CSS file). For more information please read this tutorial.
<meta> Determines metatags which contain information for browsers and search systems.
<script> It is intended for the description of scripts. For more information please read this tutorial.
<style> Determines styles of the web page. For more information please read this tutorial
<title> Creates a web-page's title which shows in the title of a browser window. Requires a closing tag. If it is not determined, browser will show page file name.

Any of these tags is not required.

Examples

<head>
<title>Title of the page
</title>
</head>

It's a basic example of using <head> tag. On the picture you may see title of page, determined in <title> tag.

<head>
<base href="http://yoursite.com/www/" target="_blank">
<basefont face="sans-serif" color="darkblue">
<title>Example of head tag</title>
</head>

This example shows how you can use <head> tag for basic formatting of web-page. You will receive the page with sans-serif dark blue font of text. All links will be open in new window.


HTML menu.