
Always place the scripts at the bottom of the HTML
Technically, the <script> tag can be placed inside two places of an HTML Document:
1. Inside the <head> tag, that is, at the beginning of the HTML document.
2. Before the closing </body> tag, that is, At the end of the HTML document.
Inside