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

Alex Horsewell
Alex Horsewell
832 Points

I feel that the root relative paths are badly explained. Can anyone help me to understand how they work?

I just want a simple explanation of how to use them.

2 Answers

Hello Alex,

I don't know whether I can clarify or making it more confuse but I'll try.

The Absolute Path using look like this :

http://www.example.com/alexhorsewell/index.html

The Site Root use the first slash as the root path aka ( http://www.example.com ). So you end up with only :

/alexhorsewell/index.html

Why not use Absolute Path Instead ?

You can but sometimes when developing a framework or huge website that change often. The Site-Root may be better alternative due to it is more maintainable.

For More Information :

https://helpx.adobe.com/dreamweaver/using/linking-navigation.html


Edit :

A Simple Example of Absolute Path Compared To Relative Path

<a href='http://www.teamtreehouse.com/community'>Treehouse Community</a>

You can simply which will go to "community" relative to site-root "http://www.teamtreehouse.com"

<a href='/community'>Treehouse Community</a>

Thankss

Alex Horsewell
Alex Horsewell
832 Points

Thankyou, I believe that I have corrected the issue on my end. However the actual course seems to be broken? Maybe...