var p = document.createElement('p'); p.innerHTML = 'some text here'; document.getElementById('some-parent').appendChild(p);