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
Robert Komaromi
11,927 PointsNeed clarification on HTML links quiz question
The quiz question asks "Which of the following links will move up one level in the directory structure?" and gives me the following options:
1. <a href="../another_page.html">My Link</a>
2. <a href="http://google.com">Take me to Google!</a>
3. <a href="./.another_page.html">My Link</a>
4. <a href="another_page.html">My Link</a>
None of these answers seem to be correct.
1 goes down a directory (..), 2 points to another website (external resource), 3 doesn't even make sense unless there is actually a (dot)file called ".another_page.html". I am aware that the single dot (.) indicates the current directory. And 4 just point to a different file in the current directory.
None of these links actually move up one level in the directory structure. Is this just an error in the quiz or am I missing something?
1 Answer
David Omar
5,676 PointsActually the ../ moves up to the parent directory
Robert Komaromi
11,927 PointsRobert Komaromi
11,927 PointsAh, thank you! I was a bit confused by the wording of the question - had a bit of a brain fart I guess! For some reason I assumed "moving up" meant going down the directory structure.