insertAdjacentElement

The insertAdjacentElement() method of the Element interface inserts a given element node at a given position relative to the element it is invoked upon.

MDN Reference