WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Head Object


Head Object

The Head object speaks to a HTML <head> element.

Access a Head Object

You can get to a <head> component by utilizing getElementsByTagName():

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

Create a Head Object

You can make a <head> component by utilizing the document.createElement() method:

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