HTML
<div id="app"></div>
JS
document.getElementById('app').innerHTML = '<p>Some text</p>'
and now HTML looks like this
<div id="app"> <p>Some text</p> </div>