Where is better to put the <script> Tag? inside the body or head? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Where is better to put the <script> Tag? inside the body or head?

25th Mar 2016, 11:01 PM
Jose Luis Escalona
Jose Luis Escalona - avatar
5 Answers
+ 2
place <script> tag in the the end of the < body > tag so that html and css are loaded earlier and javascript can be used on them. It also improves the performance of the page or website. Infact developers mostly use this.
22nd Jun 2016, 2:30 PM
Sumanth Reddy
Sumanth Reddy - avatar
+ 1
inside body
19th Jul 2016, 12:45 PM
Jeevan Pokhrel
Jeevan Pokhrel - avatar
0
At the bottom of body.
4th May 2016, 4:31 PM
David Lee
David Lee - avatar
- 1
i prefer the head
11th Jun 2016, 1:00 AM
Alphonse Okereke Ogobikau