Q. Which of the following is the method used to add an element to the desired location?
β
Correct Answer: (C)
element.appendChild()
Explanation: The method element.appendChild() is used to add the element to the desired location within the document tree.