The term URL stands for Universal Resource Locator, and is pronounced like the man's name, Earl. Essentially, it means the Internet address of a web page.
|What's an Absolute Path?
There are two ways to put links to Internet addresses on your webpages. One way is to use absolute URLs in the HREF="..." attribute (i.e., a site's entire Internet address, all the way from the http:// on down to the pagename.html). These URLs show an "absolute" path through a folder structure to a Web page, from the server down to the specific file. For example, the absolute path for this web page is:
Absolute paths are essential when linking outside of your site because your browser can't locate a file on the Web unless it knows the site's exact location. When you click on an absolute path to a web page on the Internet, you have to have a live Internet connection to reach that site. This can be a problem if you want to test your pages on your computer before making them live. For this reason, when you're linking to another page within your own site, it can be helpful to set up your links using relative paths instead of absolute paths.
What's a Relative Path?
Or we could write a link indicating the picture's location relative to this page's location, i.e., the "thmb_day01_01.jpg" page one level up from where we are in the "day04" folder, like this:
Here are some more examples:
If you want to climb up three directory levels and then down into another branch of the filesystem tree, just append the new path like this:
would take you to a folder two levels up and then down into a folder named "content", into a folder named basics, to the index page there.
You may also find the following links useful as you continue to work with web pages.
IWA - URLs Relative vs. Absolute
NCSA -- A Beginner's Guide to HTML, Part 2
Naming and Addressing: URIs, URLs, ...
Click here to go Back to Thursday's Table of Contents.
This page was last edited on June 21, 2000.
These pages were developed through GirlTECH, a teacher-training program sponsored by the Center for Excellence in Education (CEEE) and made possible by support from the National Science Foundation through EOT-PACI.
Copyright © Michael Sirois, GirlTECH, June 2000.
last edited, ms 6-21-2k, 23:54.