Home Segments Top Top Previous Next

814: Mainline

An appropriate address is given in the form of a uniform resource locator (URL). The general form for a URL for an HTML file accessed via a network includes several parts:

The following—with all necessary syntax—illustrates what a URL typically contains:

 *-- Scheme specifier 
 |     
 |      *-- Computer name 
 |      |  
 |      |    *-- Domain name 
 |      |    |         
 |      |    |          *-- Relative path 
 v      v    v          v 
-----  --- ---------- -------------------- 
http://www.ascent.com/books/java/test.html 
     ^    ^          ^ 
     |    |          *-- Internet-address separator (/) 
     |    *-- Name separator (.) 
     | 
     *-- Scheme separator (//) 

Note that the computer name used by many organizations for their web server is, appropriately enough, www—but it can be any name.