What's the best place to put <style> and <script>? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

What's the best place to put <style> and <script>?

I'm confused about this. I know it can matter if you put <script> in the body while it's supposed to be in the head.

23rd Apr 2019, 7:42 AM
Simon Sands
Simon Sands - avatar
1 Antwort
+ 4
Put style in end of head, For script, If it is importing library, put in head. Mind the dependency. If it is local script, put in end of body.
23rd Apr 2019, 8:06 AM
Gordon
Gordon - avatar