How to add JavaScript to an HTML page
- Add opening and closing script tags that look like this: <script></script>
- Put the script tags in the HTML body tag.
- Add JavaScript between the tags
- Or add a source like this: <script src="script.js"></script> and put the code in the source