0
How does JavaScript run in HTML
JavaScript in HTML
3 Respuestas
+ 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
0
With two legs?
Sorry!
To answer your question:
<script>Javascript code here</script>
Prefer before HTML </body> tag