Properly organizing your files, as well as creating a comprehensive file structure, is very important when working in big projects. In smaller projects, you might not realize the importance of this, but it's a habit you should build from the beginning, so that when you work on bigger projects, you implement good practices from the beginning.
This is extremely easy to do, and it's also something you can adapt to your personal taste. I like to keep my files organized in categories. When I begin a development project, one of the first things I like to do is create three folders: css
, where I obviously keep my CSS style files; img
, where I save the images used to build the website, and js
, where I keep all my JavaScript files. In the root of your main folder, you should have your HTML files in a way that you can easily load the rest of your files by using relative paths.
This is a very simple task, but it helps you organize all your files in a way that lets you use relative...