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!

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 Going Further with HTML Working on a Website Project Locally

Jorge Vega
Jorge Vega
Front End Web Development Techdegree Student 2,905 Points

Hello! I added a / to the articles link and it still working for me(no error or found) Does that suppose to happen?

Please see code below: <a href="/articles/2017/article.html#vr-article">Read more</a> <a href="/articles/2017/article.html">Read more</a>

1 Answer

Steven Parker
Steven Parker
228,001 Points

If both the current page and the article directory are located in the root directory, the converting the relative references to absolute (by adding "/") will have no effect.

The difference would only become apparent if you tried to relocate them to a different directory later. That would cause errors.