Answer the question
In order to leave comments, you need to log in
How should I include files?
Hello.
The question arose: What is the best way to connect styles, scripts, etc.?
In the folder
css/style.min.cssor next to index and connect like
/style.min.css.
Answer the question
In order to leave comments, you need to log in
It is better in a separate folder, many layout designers in offices do just that, because they use Sass and Gulp. and they have a habit of creating their own styles file for each section on the landing page. Even if you do not do this, then keep in mind that later there will be a separate file with media queries, and if the site is multi-page and the pages are very different, then for each page there is also a separate file with styles. If you write everything in one file, then soon you yourself will get confused there. and if you return to it after a while, then all the more so, you will be looking for what and where to correct for a long time. So it's better to put all styles in a separate folder.))) There is also a separate folder for scripts, as well as for pictures, and for fonts too. If everything is next to index.html, then there will be a vinaigrette)))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question