Resolving Relative Links

Relative link that uses "../" to "move up" the the URL path of the current URL.

Current Location:
https://www.acme.com/products/road_runner_traps/model_a.html

That contains the link:
../images/model_a.png
Note that the .. is a way to "move up" the URL path (the URL path is divided by /).

Resolves to:
https://www.acme.com/products/images/model_a.png

Resolving Relative Links 3

Relative URL that uses scheme and host from of the currrent URL.

Current Location:
https://www.acme.com/products/road_runner_traps/model_a.html

That contains the link:
/styles/screen.css
Note that the / at the beginning of the relative URL means that we start from host and scheme provided by the current location -- the relative URL is proving the complete path.

Resolves to:
https://www.acme.com/styles/screen.css