Full URL Links


Uniform Resource Locators (URL's)

URL's are used to locate resources on the world wide web. The syntax of a URL is as follows:


As an example, the URL of a Web Server may be specified as:



When the path name is left unspecified (as above), the server's default document name (home page) is fetched. The YourServer.com server's default document name is usually index.html; thus, the full URL of the home page is: http://www.YourServer.com/index.html. Note that in most browsers the 'http://' part of the address is assumed if not explicitly specified. By the way, hypertext transfer protocol (http) is not the only available protocol. For example, file transfer protocol (ftp) is yet another protocol name.

Documents in subdirectories on the server may be accessed directly using a full URL as shown below.


Linking using a full URL

Linking using a full URL is no different from linking using a relative reference (as discussed in the previous section). Shown below are some full URL links.

<a href=http://www.google.com>Google Search Engine</a>
<a href=http://www.yahoo.com>Yahoo Search Engine</a>
<a href=http://www.shareware.com>Shareware</a>

The following unordered list incorporates these links live (you need to be logged on to the Internet for them to work).

Exercise 7 (Your Own Home Page)

Write a HTML document that satisfies the following criteria.

Take this link to see the solution of the exercise. You should view the source of the solution and compare it to that which you provided.


The next section next.gif discusses the insertion of anchor points into a document.