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

HTML HTML Basics Images, Text and Links Understanding File Paths

lonewolf13
seal-mask
.a{fill-rule:evenodd;}techdegree
lonewolf13
Front End Web Development Techdegree Student 931 Points

Difference between rootfolder and subfolder? In understanding filepaths, which is the root and subfolder?

in the video understanding filepaths, which is the subfolder and which is the root folder? is it article? aritcle.html, or index.html?

1 Answer

Dane Parchment
MOD
Dane Parchment
Treehouse Moderator 11,077 Points

The root folder, is the folder where your project itself lies, sub-folders are directories within that root folder.

So let's say I create a project folder called "My Project"

> My Project/

"My Project" will end up being the root folder, of our project because it is the main folder that hosts all of the other web files.

> My Project/
    --- > scripts/
         --- > index.js
    --- > css/
         --- > main.css
    ---- > index.html

The folders scripts/, and css/ will be sub-folders (or sub-directories) that contain files relating to the project, but not the entire project itself.

I hope that clarifies things, if not feel free to ask.