+ 1
How can I put .js to .html
how Can I put example.js to example.html? IS IT this? "<script src="example.js"></script>"
1 Antwort
+ 5
<script src="example.js"></script>
^Yeah. You link your script files to the HTML like that. Technically, you can place your JS code/scripts inside of the HTML file, but it's good practice to keep code, data, and presentation separate from one another; so keep JS/CSS/HTML in their own respective files.