• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 5. Setting Lots o' Links: Hyperlink... > Exploring Relative and Absolute Path...

Exploring Relative and Absolute Paths

Whenever you create a hyperlink to another web page or place an image file in a web page, you need to enter a path to the file. Dreamweaver helps make sure that these paths are correct, but it's important that you understand the difference between the two main types of paths: absolute paths and document-relative paths. An absolute path is the full URL (more about URLs in a few minutes) to a web page. A document-relative path points to the location of a file in relationship to the page being viewed.

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 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 in this case are relative to my neighbor's location. This is analogous to a document-relative path.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint