An email link works the same way. We just use an email address instead of a page address.

<BODY>
Send me <A HREF="mailto:forrest@bubbagump.com">Mail!</A>
</BODY>


Send me Mail!

 

FAQ: How can I specify a Subject for my email message?
A: Very easily, but there's a catch. You can add a subject to the link as follows...

<A HREF="mailto:forrest@bubbagump.com?subject=Hey Bubba!">

... but, be advised that floating around out there is the occasional email client that doesn't know what to do with that subject. For those people the email may appear to be sent, but in reality it may simply disappear into oblivion. If this occasional glitch is a concern to you, then don't specify a subject.

 

FAQ: How can I get rid of the underline in my links?
A: Well, technically that can't be done with HTML. But, it can using Style Sheets. If you put the following between the HEAD tags of your document, any browser supporting Style Sheets should render the links without an underline...

<style type="text/css"><!--
a:link, a:visited, a:active {text-decoration: none}
--></style>


We can make an image a link if we want. Using the 'Go to Netscape!' example above we simply substitute an <IMG> tag for the word Netscape!

<BODY>
Go to <A HREF="http://home.netscape.com/"><IMG SRC="chef.gif" WIDTH=130 HEIGHT=101></A>
</BODY>


Go to


   
FAQ: How do you get rid of that ugly blue border around an image link?
A: Simple... add BORDER=0 to the IMG tag. (See below.)

 

FAQ: How do I link to a _____ file so people can download it?

A: Simple, just link to it. Let's suppose you have a few Microsoft Word documents that you would like to offer. Just link to them...

<A HREF="myresume.doc">Download my resume</A>
<BR><A HREF="mybio.doc">Download my autobiography</A>

Download my resume
Download my autobiography

You may wonder how to be sure the file gets saved to disk rather than being displayed or loaded or whatever. In short you have little control over what happens when a user downloads a file. Most people know how to right click and Save To Disk. Others may have a plugin to handle the file. Just let people manage that part by themselves. Your job is simply to offer it for download.

If the file is a lengthly file (200+Kb) or a collection of files, you may wish to zip them and offer the zip file for download instead.

<< BACK         NEXT >>