<script type="text/javascript" src="monscript.js"></script>
<html> <head> <script type="text/javascript" src="/path/to/script.js"></script> ...
<script src="myScript.js"></script>
<script src="javascript.js"></script>
<script> document.getElementById("demo").innerHTML = "My First JavaScript"; </script>
/* There is no actual way to put javascript inside an HTML attribute But there are some event attribute that can trigger JavaScript functions. Otherwise you have to use <script> tag or external JavaScript */
<script> // JS Here </script>