Exploring Relative and Absolute Paths

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

An analogy for an absolute path is 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, USA.” 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 ...

Get Sams Teach Yourself Macromedia® Dreamweaver® MX in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.