What is the method used to create an element in the HTML DOM?
A
createDOMelement()
B
createElement()
C
createDOMElement()
D
create()
Correct Answer: createElement()
The createElement() can be used to create an element in the HTML DOM. After the element is created, use the element.appendChild() or element.insertBefore() method to insert it to the document.