Creating Local Links
A local link point to a target in the same directory hierarchy
as the source file. A local link has this shape:
<A HREF=LOCAL-URL>CONTENT</A>
The form of LOCAL-URL depends on the position of the target file target.html relative
to the source file.
- If target.html is in the same directory, SRC, as the source file.
<A HREF="target.html">Target</A>
SRC
/ \
/ \
/ \
/ \
/ \
/ \
source.html target.html
- If target.html is in the a subdirectory, BILL, relative to the source file.
<A HREF="BILL/target.html">Target</A>
SRC
/|\
/ | \
/ | \
/ | \
/ | \
/ | \
source.html BILL
/|\
/ | \
/ | \
/ | \
/ | \
/ | \
FRED target.html
N.B. subsubdirectory FRED would be BILL/FRED/ and so on..
- If target.html is in the parent directory as the source file.
<A HREF="../target.html">Target</A>
/|\
/ | \
/ | \
/ | \
/ | \
/ | \
SRC target.html
/|\
/ | \
/ | \
/ | \
/ | \
/ | \
source.html
N.B. grandparent directory is "../../"; greatgranparent is "../../../" etc.
[Fri Jan 28 12:32:01 2000]