HTML and CSS Reference
In-Depth Information
Figure 2-36
Internet protocols
Protocol
Used To
file
Access documents stored locally on a user's computer
ftp
Access documents stored on an FTP server
http
Access Web pages
https
Access Web pages over a secure encrypted connection
mailto
Open a user's e-mail client and address a new message
Linking to a Web Site
The URL for a Web page has the general form
http ://server/path/fi le name#id
where server is the name of the Web server, path is the path to the fi le on that server,
fi lename is the name of the fi le, and if necessary, id is the name of an id or anchor
within the fi le. A Web page URL can also contain specifi c programming instructions for a
browser to send to the Web server (a topic beyond the scope of this tutorial). Figure 2-37
identifi es the different parts of a sample URL for a sample Web page.
Figure 2-37
Parts of a URL
protocol
server
path
file
id
You might have noticed that a URL like http://www.camshots.com do esn't include
any pathname or fi lename. If a URL doesn't specify a path, then it indicates the top
folder in the server's directory tree. If a URL doesn't specify a fi lename, the server returns
the default home page. Many servers use index.html as the fi lename for the default
home page, so the URL http://www.camshots.com/index.html w ould be equivalent to
http://www.camshots.com .
 
 
Search WWH ::




Custom Search