var newDiv = document.createElement('div'); newDiv.innerHTML = '<p>Hello World!</p>'; document.body.appendChild(newDiv);