| 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: http://teachertech.rice.edu/Materials/GT2001/East/day04/urls.html 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? http://teachertech.rice.edu/Materials/GT2001/East/images/testlogo.jpg Or we could write a link indicating the picture's location relative to this page's location, i.e., the "testlogo.jpg" image in the images folder, which is the same level as the "day04" folder, like this:
Here are some more examples: <A HREF="../index.html"> <A HREF="../../index.html"> <A HREF="../"> <A HREF="../../"> 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: <A HREF="../../../content/basics"> 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 schedule.
This page was last edited on June 20, 2001.
URL = http://teachertech.rice.edu/Materials/GT2001/East/day04/structure.html
These pages were developed through GirlTECH, a teacher-training program sponsored by the Center for Excellence in Education (CEEE) with support from the National Science Foundation through EOT-PACI.
Copyright © Michael Sirois, GirlTECH, June 2001.
last edited, ms 6-20-2001, 19:20.