JS Where To
The <script> tag is used to embed a client-side script (JavaScript).
The <script> Tag
In HTML, JavaScript code is inserted between <script> and </script> tags.
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.
External JavaScript
Scripts can also be placed in external files. External scripts are practical when the same code is used in many different web pages. To use an external script, put the name of the script file in the src (source) attribute of a <script> tag.