HTML <head> tag

The <head> tag is used to signify the head section of an HTML document. An HTML document has two parts - the head and the body. The head section contains important information about a webpage such as the pages title, the location of stylesheets, and scripts. The body section contains the actual content that will appear on the page.

NOTE: Whatever you place in the head section of an HTML document will not actually be displayed on a webpage, but is important.

NOTE: The <head> tag goes right after the <html> tag.

Attributes

Attribute Description Possible values
profile Specifies a URL that contains metadata about the page theURL

Standard attributes

dir, lang, xml:lang

For more information on standard attributes, check out our HTML standard attributes reference page.

Event attributes

NONE

For more information on event attributes, check out our HTML event attributes reference page.

Example

<html> <head> <title>HTML tutorial</title> </head> <body> With HTML you can create webpages and put them online. </body> </html>

Tips & notes

Between <head> and </head> put all the tags that provide some information about an HTML document including <base>, <link>, <meta>, <script>, <style>, and <title>.

Web Reference
  1. CSS reference
  2. RSS reference
  3. HTML reference


© Copyright 2011-2012 Landofcode.com
Terms of use | Privacy policy | Copyright information | Make a donation