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 HTML Basics Images, Text and Links Understanding File Paths

using ../../

Can't clearly understand why do we need to type twice ../../ if index.html is not situated in any folder (like situating somewhere deep) Looking forward to answers! THANKS:)

1 Answer

Steven Parker
Steven Parker
218,639 Points

As the instructor says about 4 minutes into the video, "... each ../ instructs the browser to go up one level out of the current folder and up to its container folder."

In this example, the html file is nested two levels deep (in the folder named "2017"), so the first ../ references the parent folder (named "articles"), and the other one references the previous parent folder (the root folder) which is where index.html is located.