space.gif - 0.8 K
HTML Help


Linking to Other Pages

In addition to adding graphics, the true power of HTML is its ability to link documents together to create a collections of information. Links can be made to:

  • other pages on the web
  • other internet resources such as e-mail.
The <a> anchor tag with the href attribute allows you to make these links. The value of the href attribute is the URL of the target document. The URL can be absolute

<a href="http://www.woonsocket.org/oceanstate/index.html"> Ocean State Webring</a>

or relative

<a href="oceanstate/index.html">Ocean State Webring<a>

Either way, the result is a link to the target document.

Ocean State Webring

You will notice that anything contained in the <a> tag is displayed as a link according to the colors specified by the link, vlink or alink attributes of the body tag. Links can be text as in the case above, or graphics.

<a href="http://www.geocities.com/~woon_heritage/9105/oceanstate.html"> <img src="oceanban2.gif" height=40 width=400 alt="Ocean State Webring" ></a>

Ocean State Webring

The border around an image which serves as a link can be turned off by setting the border attribute of the <img> tag to 0.

Somewhere on your page, you should add an e-mail link so visitors can contact you with comments or questions about your page. I include an e-mail link in the footer of every page. The mailto: URL allows you to add an e-mail link in the same manner as a link to another page.

<a href="mailto:you@server.com">E-mail Me</a>

E-mail Me

In the next section, we will look at how tables and lists can be used to organize your page.


Home | Basic HTML Document | Adding Style to your Page | Adding Graphics
Linking to other Pages | Tables and Lists | Links | Webrings | Email