Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Basics Going Further with HTML Working on a Website Project Locally

Jorge Vega
seal-mask
.a{fill-rule:evenodd;}techdegree
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
216,148 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.