Consider this example:
The user will need to click the "OK" button in the alert box to proceed.
If we had not entered the <script> tags, the browser would simply recognize it as pure text, and just write it on the screen.
In general however, it is advisable to keep as much as possible in the <head> section.
© 2018 BreakInerview