parentappendChildchild
The term parentappendChildchild refers to the DOM operation of adding a node as a child of a parent node by calling the appendChild method, commonly written as parent.appendChild(child).
In the standard DOM, this inserts the child at the end of the parent's list of children.
The method returns the node that was appended.
Example: var parent = document.getElementById('container'); var span = document.createElement('span'); span.textContent = 'Hello'; parent.appendChild(span);
Compared with append, appendChild can only insert Node objects and will throw if given non-node values. append
See also: DOM Node, Document Object Model, insertBefore, replaceChild.