element.insertAdjacentHTML(position, text); <!-- beforebegin --> <element> <!-- afterbegin --> <child>Text</child> <!-- beforeend --> </element> <!-- afterend -->