JavaScript in HTML

External Script
<script src="path/to/javascript/file.js"  > </script>
Script within HTML document
<script>
  /*
    JavaScript code as content of script element
  */
</script>