Can the script tag be used inside of both the head tag and body tag??

<head> <script> ... </script> </head> <body> <script> .... </script> </body>

15th Sep 2019, 4:01 PM
athira VK
athira VK - avatar
1 Answer
+ 1
Yes it can be used. Generally it is prefered to used script tag at the bottom of body tag, so that the document loads before the script tag. Hope this helps :)
15th Sep 2019, 4:12 PM
Deleted User