Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Connor Clausen
Connor Clausen
Front End Web Development Techdegree Student 4,335 Points

Is it okay to add all of your HTML files into a folder like you do for images and css files?

For example:

CSS style.css IMG profile.png taco.jpg HTML index.html contact.html

Braulio Garcia
Braulio Garcia
8,631 Points

Hi Connor, In my experience i never do that and the reason for that is because the index.html file has to be in the main directory, whether is in your host (public directory) or www folder in your local host, otherwise will not display the main page which is the one who can link with the other files. maybe theres a script to do that but never tried. for css, java script, img, etc is a good practice to segment those in independent folders.

1 Answer

Yes you can add but if you have a big project then you should use image / files / css /js files with individual folders