Javascript Dom Creation Flashcards
1
Q
What does document.createElement() take as its argument?
A
The string of element name that we want to create.
2
Q
What does document.createElement() return?
A
The new element - specifically a DOM element.
3
Q
How do you append elements to the DOM?
A
The appendChild() method.