HTML DOM Head Object

Head object

The Head object represents the HTML <head> element.

Access the Head object

You can use getElementById() to access the <head> element:

var x = document.getElementsByTagName("HEAD")[0];

Create a Head object

You can use the document.createElement() method to create a <head> element:

var x = document.createElement("HEAD");

Standard Properties and Events

The Head Object Supports StandardsPropertiesAndEvents.

Related Pages

HTML Tutorial:HTML Header

HTML Reference Manual:HTML <head> Tag