+ 1

How do we link js code and css to html and have them working in an order? Not execute randomly?

Js, css and html

10th Oct 2019, 6:54 PM
Letlhohonolo Tepanyeka
Letlhohonolo Tepanyeka - avatar
3 Answers
0
You can have all CSS files inside the head tag but js files will be better to have inside body before closing tag of body so your page will be load fast.
10th Oct 2019, 7:51 PM
A͢J
A͢J - avatar
+ 3
Connect css and js to html. CSS in head and js is better in body before the closing tag, in case the script does not load the user will be able to see the site without a script.
10th Oct 2019, 7:32 PM
Anna/Аня
Anna/Аня - avatar
+ 2
Thanks guys, I am new to the industry, it is such an honor to learn from you. Thank you a lot.
10th Oct 2019, 7:54 PM
Letlhohonolo Tepanyeka
Letlhohonolo Tepanyeka - avatar