+ 1
Adding the script tag
What's the difference in adding the script tag in the body section or head section?
3 odpowiedzi
+ 2
And if you're coding in SoloLearn, I recommend using the JS tab which keeps your JavaScript separate.
+ 1
you can use script tag in head section and then run you known broswer read code line by line first he read script tag it may be big and then he read html that's why our page is at loading take too much time and you can use it after body tag the broswer read first your html and then JavaScript .The most recommend method is that you us it after body tag . Especially you work at big project
+ 1
and the best way you use external JavaScript.