Level 103 Level 105
Level 104

Creating Nodes


6 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
var para = document.createElement("p");
creates a new <p> element
creates a text node:
var node = document.createTextNode("This is a new paragraph.");
para.appendChild(node);
append the text node to the <p> element:
element.appendChild(para);
appends the new element to the existing element:
parent.removeChild(child);
Removing the child from the parent:
parent.replaceChild(para,child);
Replacing HTML Elements