Session I -
Uniform Resource Locators - An Overview Since web pages get displayed on a wide variety of computers and with various browsers, naming and organizing the individual pages should follow a few rules. This will ensure that the web site is more easily maintained as well as make the pages viewable with a greater level of predictability on other machines.
Parts of a URL explained: URLs (Uniform Resource Locators) allow all resources on the Internet to be identified with a common addressing system. Here is how they are constructed. The address contains several basic parts:
An example of the parts put together in a generic model would look like this:
Hypertext URLs: Below is a more specific example of a URL which accesses hypertext files at a computer whose name (domain name) is "www.zdnet.com". The directory being accessed on this computer is "macuser". Finally, no file name is specified after the final / because many servers will automatically access a default page within a directory if no file name is given:
Common HTTP File Types: The com part of the address is called the zone and indicates a commercial site. Other common zones include gov for government, edu for education, org for nonprofit organization, and so forth. Other URL Types An FTP URL: FTP is the file transfer protocol service on the Internet. It is a protocol for allowing large files to be downloaded from a server to the accessing computer. Many web browsers will allow us to reach an FTP address and a menu of directories and/or files will be displayed. The example below also includes a subdirectory which is commonly used for storage of files available for download to the general public - the subdirectory "pub". Try to access the information at the following site using its ftp address:
Some FTP sites require a username and a password. The modified example below shows how those are to be included in the URL for access to restricted areas:
A Gopher URL: Gopher is the protocol used for transferring text documents from a server to a remote computer screen for viewing. Before the world wide web and hypertext, many text documents were placed in "gopherspace". In fact, some projects were intended to place all public domain texts on the the Internet. Here is an example of accessing a gopher site using its URL:
A slightly more complicated address might look like this: gopher://boom.micro.umn.edu/0/gopher/Mac-TurboGopher/helper-apps/Anarchie-140.sit A few final reminders: URLs should never contain spaces and are case sensitive even if filenames on your own computer are not. Some computer systems (PCs or files with DOS underlying operating systems) open files based on a three-character extension on the end of the file name. For this reason, it is a good idea to name text files intended to serve as web pages with the ".htm" or ".html" extension. If using a web authoring tool on a PC, it is likely that the extension will automatically be added. For further information, check out the Learn the Net web site and its explanation of URLs. [Session 1] [Session 2] [Session 3] [Session 4] [Session 5]
[HomePage Overview] [Top] |