The <script> element enables you to include script into you webpage,and just like CSS it can be included both internally and externally.
Usually, script element is kept inside theelement as it is easier to locate and it executes as soon as the webpage is loaded. But it can be placed any where in the webpage.
Note-Scripts are executed as soon as it is encountered by the browser while parsing the webpage from top to bottom. So position within the wepage does matter.
.Embedded javascipt is the simplest way to include javascipt into a webpage, the script to be included is simply enclosed within the <script> element in the head or body section .