add javascript to html w3schools code example Example: how to add javascript in html <script src="script.js"></script>