+ 1
What is the actual function of the script tag - in html
2 Antworten
+ 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.
+ 1
It also lets you include external JS files.