the innerHTML
method just sets the html of the element (in this case the element with the id of “image”) to whatever you want.
document.getElementById('your-thing').innerHTML = '<h2>Hello World!</h2>
the innerHTML
method just sets the html of the element (in this case the element with the id of “image”) to whatever you want.
document.getElementById('your-thing').innerHTML = '<h2>Hello World!</h2>