+ 1
What's wrong with this code?
4 ответов
+ 5
This is a code from w3 schools right? Try placing the script inside the HTML tab - because to manipulate DOM with JS tab you have to wrap the whole JS code with window.onload method
+ 2
script tags at head runs before the DOM exists.
Move the script tags and all js code snippets to just before the closing tag of body.
https://code.sololearn.com/W8qiO41gHNfu/?ref=app
0
Is that correct now?
0
No, it is not working.