Back

Anchors and Links

Below are working examples of all sorts of Links.


To link to a site anywhere on the WWW

TEXAS: Landmarks and Legacies

<A HREF="http://howdyyall.com">TEXAS: Landmarks and Legacies</A>


To link to another file in my same directory

Page Two

<A HREF="PageTwo.htm">Page Two</A>

NOTE:The http://is not necessary from within your own directory.


To link to a file in a parent directory

HTML index

<A HREF="../html_ndx.htm">HTML index</A>

NOTE: The http:// is not necessary if the target file is in the same directory.


To use an image as the link:



<CENTER><A HREF="http://howdyyall.com"><IMG SRC="butn_tex.jpg"></A></CENTER>

NOTE: The border around the graphic indicates that it is a link. It will change color once visited according to your LINK and VLINK attributes in the BODY tag at the top. To eliminate the border around a graphic:



<A HREF="http://webtech.tstc.edu/rcozby"><IMG SRC="butnhome.jpg" BORDER="0"></A>


To link to a spot within the current page:

To the Top

<A HREF=#TOP>To the Top</A>

At the top of this page is the following code:
<A NAME="TOP"></A>

Note: It is not necessary to place any text between the two <A></A> of the <A NAME="  "></A> tags, but you must provide a name for the bookmark itself.
Note also: The next version of HTML is expected to drop the NAME=" " attribute. If this occurs, use <A ID="(bookmark name)"></A>


To link to any anchor within another page on the Web:

Waco Links

<A HREF="http://howdyyall.com/texas/centex.htm#waco">Waco Links</A>


To force the users browser to open a second window for the link rather than close your page:

Photo: Firey Sky
<A HREF="http://howdyyall.com/Photos/firesktn.gif" target="top">Photo: Firey Sky</A>


To open the users mail browser and e-mail you:

E-mail Mr. Cozby
<A HREF="mailto:Bob@howdyyall.com">E-mail Mr. Cozby</A>

On some browsers, you can even force a particular subject in the subject line:

<A HREF="mailto:Bob@howdyyall.com?subject=Anchors%20and%20Links">E-mail me with a subject line</A>
E-mail me with a subject line

<A HREF="mailto:Bob@howdyyall.com" title="Anchors%20and%20Links">Subject line for Mosaic</A>
Subject line for Mosaic

The %20 is used to force a space between words. The percent sign introduces a special character, and the "20" is hexadecimal for 32, which is the ASCII value for a space.


Note: It is customary to place your e-mail address and the date the page was updated at the bottom of the page in the <ADDRESS></ADDRESS> tag pair.

<ADDRESS>
This page was last updated on June 7, 2002
Please e-mail me at Bob@howdyyall.com

To the top

</ADDRESS>