Explore Relative and Absolute Paths

Whenever you create a hyperlink or place an external file in your Web page, such as an image file, you need to enter its path. The main two types of paths are absolute paths and document relative paths.

An analogy for an absolute pathis a house address. If I gave the address of my house to someone who lives in another town I would tell them, "I live at 123 Spruce, Seattle WA 98122." This is all of the information that anyone would need to get to my exact location or to send me a letter (this isn't my real address, so if you really want to send me a letter, send it in care of the publisher!). If I gave directions to my house to someone who lives on my street, I might tell them, "I live two doors south of you." The directions I give in this case are relative to my neighbor's location. The first example is analogous to an absolute path and the second example is analogous to a document relative path.