+ 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>"

9th Oct 2017, 6:42 PM
Rastislav
Rastislav - avatar
1 Odpowiedź
+ 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.
9th Oct 2017, 6:47 PM
AgentSmith