The same time, Microsoft also invented JScript, the Microsoft's client side scripting language for their Internet Explorer 3. But JScript was meant for Internet Explorer only.
|1991||HTML, WWW Formed|
|1998||DHTML( Html + Java)|
We can write script in head tag only when we want the script to be loaded before HTML Markup. For Exp, script for redirection or moved page, securities etc.
Rest all script like Jquery, Angular should be written just before body closing. This can load DOM Content first, then scripts will run, hence optimise webpage performance.