add script file in html
snippet in html

import js in html

user1436

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

include script in html

user6986

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

how to link javascript to html

user1727

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

how to add script in html head

user3785

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

<!--just add defer attribute so script will execute at last-->

add script file in html

user2853


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