Adding Links
Home Basic HTML Adding Links Adding Style Using Graphics Tables

Linking to Other Pages

The true power of HTML is its ability to link documents together to create a collection of information. Links can be made to:

other pages on the web
other internet resources such as e-mail
shareware files

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://faculty.holycrosstigers.com/faculty/emaillinks.asp">
Faculty E-Mail Directory</a>

or relative

<A HREF="../faculty/emaillinks.asp">Faculty E-Mail Directory<a>

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

Faculty E-Mail Directory

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.  These items will be discussed further into the tutorial. Links can
be text as in the case above, or graphics.

<A HREF="http://faculty.holycrosstigers.com"> <IMG SRC="lebanner.gif" height=60 width=400 alt="Holy Cross Faculty Center" border=2></a>

Holy Cross Faculty Center

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 (zero). The alternate text attribute (alt=) will show up in browsers that do not support graphics.

Somewhere on your page, you should add an E-Mail link so visitors can contact you with comments or questions about your 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:sknight@holycrosstigers.com">Stephanie Knight</a>

Stephanie Knight