html script tag
snippet in html

html script tag

user3790

<script>
	// Put JavaScript inside here
</script>
<!-- OR -->
<script src="all-js/01001/015.js"></script>

js script

user503

<script src="javascript.js"></script>

script tag in html

user6075

<script>
  // Write JS here
</script>

<script src="link/to/js/file.js"></script>

js script

user1328

<script src="javascript.js"></script>

html inline javascript

user7957

/*
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
*/