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 trialIlona Mikhalskaya
Front End Web Development Techdegree Student 487 Pointsusing ../../
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
231,198 PointsAs 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.