B)
document.getElementById('demo').innerHTML = 'Hello World!';
document.getElement
and document.getElementByName
functions do not exist.
#demo.innerHTML
is not a valid JavaScript
syntax.