Dreamweaver

Document locations and paths

Understanding the file path between the document you’re linking from and the document you’re linking to is essential to creating links.

Each web page has a unique address, called a Uniform Resource Locator (URL). However, when you create a local link (a link from one document to another on the same site), you generally don’t specify the entire URL of the document you’re linking to; instead, you specify a relative path from the current document or from the site’s root folder.

There are three types of link paths:

  • Absolute paths (such as http://www.adobe.com/support/dreamweaver/contents.html).

  • Document-relative paths (such as dreamweaver/contents.html).

  • Site root–relative paths (such as /support/dreamweaver/contents.html).

    Using Dreamweaver, you can easily select the type of document path to create for your links.

    Note: It is best to use the type of linking you prefer and are most comfortable with—either site or document relative. Browsing to links, as opposed to typing in the paths, ensures that you always enter the right path.