Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

Connor Clausen
seal-mask
.a{fill-rule:evenodd;}techdegree
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

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