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 Going Further with HTML Root-relative Paths

Mohammed Seleman
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Mohammed Seleman
Front End Web Development Techdegree Graduate 15,312 Points

Root Relative Path

Is root directory the folder that you first create when starting a project? In this case index.html was the first folder I made so its the ‘root directory’?… If lets say I made a folder called ‘welcome.html’ first then that would be the root directory. I don’t quite get how we know what the root directory is…

1 Answer

First, you have to make the distinction between files and folders. index.html and welcome.html are files. Files exist within a folder. If index.html was the first file you created, then it would exist within the root folder for that project.

If that doesn't clear things up, reply and I'll provide more details.