where to use script tag in html code example

Example 1: html script tag

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

Example 2: best place to include script in html layout

JavaScript in <head> or <body>
You can place any number of scripts in an HTML document. Scripts can be placed in the <body> , or in the <head> section of an HTML page, or in both.

Example 3: call js script in html

<script src="file1.js" type="text/javascript"></script> 
<script src="file2.js" type="text/javascript"></script>

Example 4: script tag in html

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

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

Example 5: how to use script tag

<script>
 document.getElementById("id").innerText = ("");
</script>