logo for how to make a website explained



HTML Head Tag

The HTML head tag is the tag that contains the information about your HTML page. The head tag could contain information on the author, the title and information for the search engines etc. All the information that is placed in the head tag, is information about the page and won't be displayed on the actual webpage.


The head tag will only be used once in a HTML page, at the beginning after the opening HTML tag, and before the opening body tag.


The title, meta, style, script, base and link tags can be used within this tag.

  • Title Tag - compulsory tag that contains the title of your website.
  • Meta Tag - contain information that won't be visible, but contains information about the author or for search engines
  • Style Tags - neccessary if you are using in-style CSS (cascade styling sheets)
  • Base Tag - to do with linking out of your website.
  • Link Tags - used to link to style, javascript or php scripts.


HTML Head Tag Example

The following example will show you what can be contained within the HTML head tag:


Example in Table. HTML is purple and red in this specific tag, the Head tag. The content inside the Head tags are Blue.


Code Example

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">



<title>Title Goes Here</title>

<meta name="Author" content="Your Name" />

<meta name="description" content="" />

<meta name="keywords" content="" />

<link href="1.css" rel="stylesheet" type="text/css" />



<script type="text/javascript">





<p>Body Content</p>




View Example (browser view) the html tag


So do you see what the HTML head tag does? It contains all the information about your site, and links to crucial documents, as well as providing information for the search engines.


Every tutorial that you do, must have this head element in it. Are you ready for some HTML tutorials, or want to continue learning the Basic HTML tags?





Leave the HTML Head Tag and Return to the Homepage





Copyright | Disclaimer | Privacy Policy | Site Designed by Nathanael Vanderkolk





click tracking