[Home]Create a link

HomePage | RecentChanges | Preferences | Newbie Help

HTML Basics

HyperLinks ('links' for short) are what make the internet special, without them, you wouldn't be able to visit websites, send email, and a whole lot of other stuff. The basic syntax is as follows...
<a href="http://www.google.com">Click here to Search</a>

Use a small [Form]

<INPUT TYPE="submit" VALUE="Text on button"> 

Don't use these extensively, however. Not only are they ugly, but they make navigation difficult (mouse hover facilities such as status bar messages, and the ability to open the link in a new window are disabled).

First, specify the target of the link with a named anchor.
<a name="target">This is where the link jumps to</a>

Now link to the target using
<a href="#target">This is the link that goes to the target</a>

You can also link to a position on another page
<a href="foobar.html#target">This is the link that goes to the target</a>

<a href="mailto:myname@mydomain.com">Mail Me!</a>
In plain english, that piece of code says to the browser, "Make a link that sends mailto this address". All you have to do is place your e-mail address where it says myname@mydomain.com.

See Also --

HomePage | RecentChanges | Preferences | Newbie Help
This page is read-only | View other revisions
Last edited January 26, 2002 6:54 pm (diff)

This FAQ is happily hosted by Betadome Digital Media