Navigating directories on your web-site
=======================================
For simplicity, all files on your web-site, both HTML and images,
can be kept in one single directory; but if the site is at all
large, it becomes much more logical to spread them over a small
number of directories (and avoids too many files per directory).
You will then have to work out how to refer to different files
(in hyperlinks or image sources) across the directory structure.
Firstly, it's up to you as web-author to remember which files are
in which directories!
If a file you're referring to is in the same (sub)directory as the
page you are writing, then you just use the likes of:
Continued
or the more explicit Continued
where the "./" means "in the current directory".
If the file you're referring to is inside a directory which is in
the same directory as the current page, use for example:
or
.
or Continued etc.
If the file you're referring to is in the parent of the directory
containing the page you're writing, use something like:
Back to Home page
where the "../" means "go back up one level".
If the file you're referring to is inside a directory which is
in the parent of the directory containing the page being written,
you'll need to both go up a level and down again, for example
Example of a local directory structure on your hard disk:
(site root directory)
/ | | \
/ | | \
/ | | \
index/html pages images reply/html
/ | | \
/ | | \
/ | | \
about/html more/html home/gif photo/jpeg
Note the use of a "slash-extension" in RiscOS/ADFS names above,
but a "dot-extension" in the unix-style names in the HTML below
(and of course, vice versa for (sub-)directory/file separators).
Some example fragments of HTML in those pages:
in "index":
About me
Sign the Visitors' book