+ 1

Adding the script tag

What's the difference in adding the script tag in the body section or head section?

25th Dec 2017, 8:48 PM
Victor Jonah
Victor Jonah  - avatar
3 Respuestas
+ 2
And if you're coding in SoloLearn, I recommend using the JS tab which keeps your JavaScript separate.
26th Dec 2017, 3:46 AM
Duncan
Duncan - avatar
+ 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
25th Dec 2017, 9:02 PM
Qasim
Qasim - avatar
+ 1
and the best way you use external JavaScript.
25th Dec 2017, 9:03 PM
Qasim
Qasim - avatar