Linking To Other Documents

The power of HTML is it's ability to link to other resources within the same document, to a different document on your Web site, or to a document across the world. This is accomplished through the use of Hypertext. Below we demonstrate some of the most common ways hypertext links are utilized. You can also link from inline images which is demonstrated in the Images section of the tutorial.


A Basic Link

The Code in This Column...Will Display Like This
<A HREF="training.htm">This is a link!</A> This is a link!
This is a <A HREF="training.html">link!</A> This is a link!
This is a link to
<A HREF="http://www.fortlewis.edu">Fort Lewis!</A>
This is a link toFort Lewis!


Internal Links

Links from one part of a document to another part of the same document.

The Code in This Column...Will Display Like This
<A HREF="#dogs">Below</A>you will find information about dogs.Clicking on the link will take you to a sentence about dogs at the bottom of this frame.
--<BR>
--<BR>
--<BR>
--<BR>
--<BR>
--<BR>
--<BR>
--<BR>
<A NAME="dogs"><B>Dogs</B> </A>are man's/woman's best friend.
Below you will find information about dogs. Clicking on the link will take you to a sentence about dogs at the bottom of this frame.
--
--
--
--
--
--
--
--
Dogs are man's/woman's best friend.


Linking to a Target in Another Document

Links from one part of a document to another part of another document.

The Code in This Column...Will Display Like This
Follow this <A HREF="basic.html#rules">link</A>to find out about Horizontal Rules
Follow this link to find out about Horizontal Rules.


[ Top | Basic Tags | Lists | Images | Links | Tables | Extensions | Lab Exercise]