Addressing In The Web
We said that we need to "(2) 'call up'
another computer, the server running the Web server
software, to ask for the information that we want..."
How do we know what to ask for?
To get files from a server on the Web, we need to know
index.html
located on a server called
howard.nebrwesleyan.edu
...
The address of the file is a URL (for
Uniform Resource
Locator) that tells How to get the file,
Where to get it from, and What file to get:
http://howard.../index.html
or, interpreting this in various levels of abstraction,
how://where/what
how://server/file
"http" is HyperText Transfer Protocol
the server is just the name of the server
(howard.nebrwesleyan.edu
), and
the file is just the name of the file (index.html
).
Piece o' cake.
Note that for most servers, the filename index.html or
index.htm is implied, so that the address
http://howard.../
would be the same thing as that given above. In most cases the
trailing "/
" is also implied, so that it can also be left
off.
Subdirectories
To get the file index.html
in the "math" subdirectory of
the "classes" directory (see the image above), the URL would be
http://howard.nebrwesleyan.edu/classes/math/index.html
or
http://howard.nebrwesleyan.edu/classes/math/
To get to subdirectories in the Web Docs
directory, insert them separated by "/ "s.
(Did you guess that the ...
in the addresses we gave
above represented ".nebrwesleyan.edu"? Good. So did I.)
What's a link? It's just somewhere in a page where the
person who
wrote the page hid one of the URLs that we've been talking
about...
|