HTML HTML Basics Images, Text and Links Understanding File Paths

grace morgan-maxwell
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
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
177,495 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
177,495 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