1 Set the value of innerHTML on the parent element to a string containing HTML for the new elements.
2 Same as 1.
4 Set the value of innerHTML on the parent element to an empty string.
7.1 Call Node.removeChild(), save the returned Node object, and then pass the node to Node.appendChild().