head tag (HTML 4.01)

document head

Topics

The head tag offers information about the page, not much by it self, but by the child tags available to it. For instance, the title tag, which provides the document title and the meta tag, which can provide extra information about the document like keywords, author information etc. You should consider this a non-visible information area, since none of the major browsers will render information found within the head tags directly on the page - for the visible part of the page, see the body tag.

 

The head portion of the page is also where you can define CSS and script (e.g. JavaScript) code, using the style and script tag respectively.

Attributes

Attribute Deprecated Required Description
class  space-separated list of classes 
dir  direction for weak/neutral text 
id  document-wide unique id 
lang  language code 
profile  named dictionary of meta info 
style  associated style info 
title  advisory title 

Events

Event Description
onclicka pointer button was clicked 
ondblclicka pointer button was double clicked 
onkeydowna key was pressed down 
onkeypressa key was pressed and released 
onkeyupa key was released 
onmousedowna pointer button was pressed down 
onmousemovea pointer was moved within 
onmouseouta pointer was moved away 
onmouseovera pointer was moved onto 
onmouseupa pointer button was released 



© htmlpedia.net 2008 - 2012