About file locations and URLs
In most cases, Web files are created on one computer and transferred
to a Web server that is connected to the Internet. You might create
Web pages on your home or office computer, then transfer the files
over a network or the Internet to a Web server.
Web pages often contain links to other Web pages on the same Web
server. Because these links are based on the names and locations of
the files on the Web server, changing file names or locations can
break the links among the pages.
To successfully create hyperlinks among Web pages on your site,
you should understand how to use relative directory paths, absolute
directory paths, and Internet URL addresses.
Absolute paths
An absolute path specifies a files location starting
at the top, or root, of the directory structure in which the file is stored.
For example, if a file named Calendar.html is stored in a folder
named Events, inside a folder named Public, which is inside a folder
named Home at the root of the hard drive, the path to the file is:
/Home/Public/Events/Calendar.html
Relative paths
A relative path specifies the location of a file rela-
tive to the location of another file in the same directory structure.
Rather than starting at the root of the directory structure, a relative
path starts at the location of one file or folder and lists the relative
steps needed to get to the specified file. In a relative path, the symbol
../ (two periods and a slash) signifies a move up one step toward the
root level in the directory structure.
Type the URL of the Web
servers root directory
Type the equivalent folder
on your local hard disk
Type the folder where you
store Web pages