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
3 ответов
+ 2
Create 3 files
Index.html
styles.css
myScript.js
https://code.sololearn.com/W8ko8jS6d3AM/?ref=app
+ 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.
0
Thanks brother