A
A
a16a2018-01-28 18:52:13
css
a16a, 2018-01-28 18:52:13

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.css
or next to index and connect like
/style.min.css
.
Also is it better to have everything in one file (bootstrap, normolize... your own css)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shadowman69, 2018-01-28
@a16a

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 question

Ask a Question

731 491 924 answers to any question