I'm having a problem with the getElementById
in javascript, the console just says 'cannot read property 'style' of null, i.e the element is null, even though it is not null?
html
<h1 id="title">Title</h1>
javascript
document.getElementById('title').style.color = 'red';