21. Which method adds a node to a parent node before : 1320993.
21. Which method adds a node to a parent node before one or more existing child nodes??
a. ?appendChild()b. ?createElement()
c. ?insertBefore()d. ?cloneNode()
22. The DOM hierarchy is also known as ____.
a. the APIb. the node
c. the ?DOM treed. ?DHTML
23. Which method returns the element created by the HTML tag pair <p id=”?weekend” class=”first”></p>?
a. ?getElementsByTagName(“first”)
b. ?getElementById(“first”)
c. ?querySelectorAll(“first”)
d. ?getElementsByClassName(“first”)
24. Which method returns a single element??
a. ?getElementsByTagName()b. ?getElementsByClassName()
c. ?querySelector()d. ?querySelectorAll()
25. A set of connected nodes that are not part of a document is known as a(n) ____.?
a. ?node listb. document fragment?
c. ?HTML collectiond. ?array
21. Which method adds a node to a parent node before : 1320993