When using Notepad++ to code, How can I combine Css and Html and JavaScript document together | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When using Notepad++ to code, How can I combine Css and Html and JavaScript document together

Should I use .Html to save the file or .Css or the two

11th Aug 2022, 7:46 AM
Creen Domains
Creen Domains - avatar
3 Answers
+ 2
Create 3 files Index.html styles.css myScript.js https://code.sololearn.com/W8ko8jS6d3AM/?ref=app
11th Aug 2022, 8:00 AM
Chris Coder
Chris Coder - avatar
+ 2
It is best practice to separate your html, css and javascript files. It will make project much easier to work on. So html with .html, your css with .css your javascript with .js This is called external css or external js, check this to learn how to link tham with html: https://betterprogramming.pub/link-css-and-js-files-with-html-file-f848d00b42e8 If you have multipy css files it is good practice to make folder for it like style folder and place all styles inside. Only situation when you don't need to separate is if you have very little code of css and js, like 2-3 lines of code.
11th Aug 2022, 8:11 AM
PanicS
PanicS - avatar
0
Thanks brother
11th Aug 2022, 3:32 PM
Creen Domains
Creen Domains - avatar