READ: Relative vs. Absolute Paths
.
Site: | Mountain Heights Academy OpenCourseWare |
Course: | Web Essentials Q1 v2014 |
Book: | READ: Relative vs. Absolute Paths |
Printed by: | Guest user |
Date: | Tuesday, 17 April 2018, 4:09 PM |
Intro
In this chapter we are going to learn about relative and absolute paths. As we learned in the last chapter, files are organized into folders or directories. A file's path is like an address for a file. It directs the computer to where a file lives. Files live in folders which live in other folders and so on. Its organized like a tree with multiple branches. The uppermost directory is the root directory like the root of the tree. Every other file is a descendant or child of the root. The root is separated by a '/'.
Relative Paths
A relative path assumes that the file is on the current server. Using relative paths allows you to construct your site offline and fully test it before uploading it.Absolute Paths
An absolute path refers to a file on the Internet using its full URL. Absolute paths tell the browser precisely where to go."http://www.uvsc.edu/disted/php/webct/itr/index"
Video
Watch the video below. It may seem kind of confusing as you are watching it, but I can assure you that it will make more sense in quarter 2 when we actually learn how to hyperlink files. For now, pay attention to the differences between an absolute path and a relative path. HERE is a good read on absolute and relative paths if you are interested.