Complete URLs Like an absolute path, a complete URL lists the
directory path starting at the root to the location of a Web page on a
server. In addition to the path and file name, a complete URL
includes a protocol (http or ftp) and an Internet domain name.
In the Directory paths diagram on page 14.189, if the folder named
Home is the root folder of a Web site, the URL for the Calen-
dar.html page is:
http://www.domain.com/Home/Public/Events/Calendar.html
Entering file names and URLs When you create hyperlinks, you
can specify the target as a relative path or a complete URL.
If the two pages are in the same folder or directory, the rela-
tive path is simply the name of the target file.
A complete URL specifies the actual location of the file on
a Web server on the Internet.
Directory paths
In the directory diagram shown here, the rela-
tive path from the file Local.html in the Maps
folder to the file Calendar.html in the Events
folder is:
../../Public/Events/Calendar.html
In this case, the relative path starts on one
branch of the directory tree, moves to the root,
and then back down another branch.
If two files are on the same branch of a directo-
ry, the relative path can be much shorter than
the absolute path. For example, the relative
path between the file Calendar.html in the
Events folder and a file named Schedules in
the Public folder (one level above Events) is:
../Schedules.html
The absolute path to the same file is:
/Home/Public/Schedules.html
Calendar.html
Local.html
Public
Offices
Maps
Events
Home
http://www.deneba.com/default.html
Protocol
Domain
Root of directory
file name
A complete URL for a Web