Jumpstart into the Web technologies: <- Prev. Start Contents References Home Next ->
URL - Universal Resource Locator

How do you give an address to some resource on the Internet? URL.
Universal Resource Locator (URL) is basically the unique address for a resource on the Internet. General structure of the URL is the following:

scheme://hostname[:port]/path/filename

Where scheme is basically protocol, by which resource should be accessed. Depends on the scheme the URL can look a differently, here is the list of the most commonly used schemes:
http - HyperText Transfer Protocol (WWW server protocol), the most used one.
The format of this type of URL is:
http://[user:password]@hostname[:port]/path/filename[#label|parameters], where: All of these fields are actually optional, in case if field is omitted default is used.
Note: That it's better to use URLs with as fewer fields as possible, because it allows you to build much more portable documents. For example if you put in you document the full path and you need to move it some place else, you'll have to change all the URLs inside your documents. But if you use the relative path (without hostname & and with relative path instead of the absolute one, most likely you won't need to change anything.

ftp - File Transfer protocol
ftp://[user:password]@hostname[:port]/path/filename, where the meaning of the fields is similar to the http protocol.

mailto - Send e-mail
mailto:address - this will open new message in your e-mail composer (netscape).

news - Usenet news protocol
news://server-name/groupname, where: e.g.: news://news.ne.mediaone.net/alt.os.unix

More info on URLs can be found here

Jumpstart into the Web technologies: <- Prev. Start Contents References Home Next ->

Copyright © 2000 Sergey Gribov