“Uncaught TypeError: Cannot read property ‘style’ of null at.. “
I practiced the styling as shown below in a different document and it worked there for paragraphs and buttons but, for divs, however, it refuses to do so. The first document.getElementById(‘red’).style.width=”100px”; statement returns an error “Uncaught TypeError: Cannot read property ‘style’ of null at.. “ When I tried it in another document, it worked without placing the … Read more