0
Script tag
when we creating a programme of js in html it necessary to give body tag or not?
1 Resposta
+ 1
If you are putting javaScript on a page anywhere it needs to be in a <script></script> block. You can put it in the <head></head> or <body></body> blocks. The only time you don't need that is for individual commands that will the action to take as a result of onclick, onmouseover, etc... events.