URLs

The World Wide Web uses Uniform Resource Locators (URLs) to specify the location of files on other servers. A URL includes the type of resource being accessed (e.g., Web, gopher, telnet), the address or domain name of the server, and the location of the file. The syntax is:

scheme://host.domain [:port]/path/ filename

where scheme is one of

file    a file on local system
ftp     a file on an anonymous FTP server
http    a file on a WWW server
gopher  a file on a Gopher server
WAIS    a file on a WAIS server
news    a USENET newsgroup
telnet  a connection to a telnet service
mailto  send mail to an email account

For example, to include a link to my page, enter:

    <A HREF="http://www.tuns.ca/~bslauen/index.html"> 
    Bill's Home Page</A>

and this is what you get:

Bill's Home Page

Links to Specific Sections

Anchors can also be used to move to a particular section in a document (either the same or a different document) rather than to the top, which is the default. This type of an anchor is called a named anchor because to create the links, you insert HTML names within the document.

Suppose you want to set a link from document A (documentA.html) to a specific section in another document (beertype.html).

Enter the HTML coding for a link to a named anchor:

     documentA.html:
     
     Labatt's makes many other kinds of beer, in addition to  
     <a href="beertype.html#BLUE">Blue</a>.

The words after the hatch (#) mark are a bookmark within the beertype.html file. This bookmark tells your browser what should be displayed at the top of the window when the link is activated. In other words, the first line in your browser window should be the Blue heading.

Next, create the named anchor, or bookmark (in this example "Blue") in beertype.html:

    <A NAME="BLUE">Blue</a>

An example of this is can be shown by following this link.