We will do this in 2 steps to make it easier to understand. Firstly, we need to obtain the actual <p> element with javascript. To do this, we use the following command:var p = document.getElementById('id1'); This finds the element by its id tag, and assigns it to our javascript variable p.Now we need to change the inner html with this command:p.innerHTML = 'hello!'; Once you understand the 2 commands going on here, you can use both of them in one line, which saves space and saves us from having to define any javascript variables:document.getElementById('id1').innerHTML = 'hello!';