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

Gaby Esu
Gaby Esu
882 Points

File path not working

My read more is supposed to open in a new page, when I click it, the page says "page not found"

Gaby Esu
Gaby Esu
882 Points

Here is the syntax:

                <header>
                  <h3>How Schools Use Virtual Reality to Improve Education</h3>
                  <p>By: Nick Pettit</p>  
                </header>  
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ultrices euismod turpis eget porta. Etiam nulla massa, pretium et massa nec, ornare dignissim nisi.</p>
                <a href="articles/article.html">Read more</a>
                <footer>Published 1995</footer>
              </article>```

2 Answers

Check folder structure in your workspace, article.html is located in articles/2017/ folder so the path will be <a href="articles/2017/article.html">Read more</a>

Shanae Rodriguez
Shanae Rodriguez
1,560 Points

The file path only worked for me if I typed it from scratch again. I have no idea why this is the case. Once I did it the new file paths worked. I had to do this each time the path was changed in the video.