+ 1

What is the actual function of the script tag - in html

12th Apr 2017, 2:27 PM
Favour Emmanuel
Favour Emmanuel - avatar
2 odpowiedzi
+ 4
It's there to provide you the flexibility of writing your javascript code inside html file itself or writing it into a new .js file and then linking. P.S: Not a good idea to put the js code in html file though for large projects.
12th Apr 2017, 2:34 PM
Ashwani Kumar
Ashwani Kumar - avatar
+ 1
It also lets you include external JS files.
12th Apr 2017, 4:38 PM
Luca Garrera