Changing Document Structure


createElement
Creates an element of the defined type
createTextNode
Creates a text node (the content of, say, an h2 element)
appendChild
Adds a new child at the end of the list of children
insertBefore
Inserts child node before the one specified
replaceChild
Replaces a child node by the one specified