w3schools import js in htm; code example Example: import js in html <script type="text/javascript" src="yourfile.js"></script>