document.create element html example Example: js create element var newDiv = document.createElement("div"); document.body.appendChild(newDiv);