Linking and Navigation
355
Document-relative paths
Document-relative paths
are the most appropriate paths to use for local links in
most Web sites. They’re particularly useful when the current document and the
linked document are in the same folder and are likely to remain together. You can
also use a document-relative path to link to a document in another folder, by
specifying the path through the folder hierarchy from the current document to the
linked document. The basic concept behind document-relative paths is to omit
the part of the absolute URL that is the same for both the current document and
the linked document, providing only the portion of the path that differs.
•
To link to another file in the same folder as the current document, simply enter
the file name.
•
To link to a file in a subfolder of the current document’s folder, provide the
name of the subfolder, then a forward slash (/), and then the file name.
•
To link to a file in the parent folder of the current document’s folder, precede
the file name with ../ (where “..” means “up one level in the folder hierarchy”).
For example, suppose you have a site with this structure:
resources
tips.html
my_site (root folder)
support
contents.html
hours.html
products
catalog.html
index.html (home page)
Summary of Contents for 38028779 - Macromedia Dreamweaver - Mac
Page 1: ...macromedia Using Dreamweaver...
Page 148: ...Chapter 4 148...
Page 296: ...Chapter 12 296...
Page 472: ...Chapter 18 472...
Page 512: ...Chapter 21 512...
Page 562: ...Appendix 562...