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

grace morgan-maxwell
seal-mask
.a{fill-rule:evenodd;}techdegree
grace morgan-maxwell
Front End Web Development Techdegree Student 845 Points

Can't get my file path to work. Can someone please tell me what I've done wrong?

I'm up to HTML file paths on VR site project, neither of the two below is working for me. I keep getting the Not Found error message.

<li><a href="../index.html">Home</a></li>

<a href="articles/2017/article.html">Read More</a>

grace morgan-maxwell
seal-mask
.a{fill-rule:evenodd;}techdegree
grace morgan-maxwell
Front End Web Development Techdegree Student 845 Points

I even copied and pasted the final code from the zip folder under resources for index.html and articles.html and I still get the same not found error message - is there something else I can try?

Steven Parker
Steven Parker
231,269 Points

If you make a snapshot of your workspace and post the link to it here, we can replicate and examine the issue.

2 Answers

Steven Parker
Steven Parker
231,269 Points

There's two "article.html", one in the main folder, the other in the "articles" folder. I assume you are working with the second one.

In article.html:
<li><a href="../index.html">Home</a></li> :point_left: this link worked okay, and displayed the home page.

In index.html:
<a href="articles/2017/article.html">Read More</a> :point_left: this link is pointing to the wrong place
<a href="articles/article.html">Read More</a> :point_left: here it is fixed, with the correct location