0

How does JavaScript run in HTML

JavaScript in HTML

29th Nov 2018, 3:05 PM
Joel Keke
3 Respuestas
29th Nov 2018, 4:22 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 1
on sololearn it already works for you if you put it in the javascript area. but lets say youre using sublime text or visual studio code. You would create a folder for your whole project and put these folders inside of it. index.html example.js example.css You can name them however, but index.html should be used for your first HTML document. Then you would link the script with a link in your HTML. you can find the way in how to do that in the HTML course
29th Nov 2018, 5:08 PM
Yosharu
Yosharu - avatar
0
With two legs? Sorry! To answer your question: <script>Javascript code here</script> Prefer before HTML </body> tag
29th Nov 2018, 3:07 PM
Geoffrey L
Geoffrey L - avatar