var h = document.getElementById("myH2");
h.insertAdjacentHTML("afterend", "<p>My new paragraph</p>");
let target = document.getElementById("ID");
target.innerHTML += "<p>CONTENTS</p>";
//add new created html : where to insert, what to insert
element.insertAdjacentHTML("afterbegin", html);