import js in html
snippet in html

import js in html

user2375

<script type="text/javascript" src="yourfile.js"></script>

include script in html

user8553

<script type="text/javascript" src="/path/to/script.js"></script>

link javascript to html

user3483

<script src="index.js"> </script>

import script html

user5432

<html>
  <head>
    <script type="text/javascript" src="/path/to/script.js"></script>
    ...

how to link javascript to html

user4478

<script src="PathToYourFile.js"> </script>

how to link js to html

user2203

<script src="Your-JavaScript-File.js"></script> <!--If JS file is in same folder with HTML file-->