+ 2

Addition of CSS, JavaScript??

I'm creating my first Blog in WordPress. I'm confused how to add external CSS and JavaScript to my HTML content.

20th Jan 2018, 3:01 PM
Tapan Das
Tapan Das - avatar
2 Réponses
+ 8
Btw if you want to add the script between head tag you can add a attribute "defer" and set its value to true to make sure that Javascript will load after document is loaded completely.
20th Jan 2018, 3:12 PM
Ranjan Bagri
Ranjan Bagri - avatar
+ 4
Hey! @Tapan You should add css in header tag, <link rel=stylesheet type="text/css" href="css/layout.css"> And, you may add javascript at the end of body tag, <script type="text/javascript" src="script.js"></script> </body> Hope! it helps.
20th Jan 2018, 3:05 PM
Majestic Ayush
Majestic Ayush - avatar