DOM manipulation is the process of modifying the document object model, along with its content. The method can be used to create a new element based on the tag name. A drawback in using this method could be duplication of element IDs. The newly created element will be stored in a reference, and it would float around aimlessly.
Sort: