|
Learn
HTML - Lesson - 12
E-Mail - Using
the MAILTO : Command
Before we leave this lesson on links, let's
take a look at the command that allows people
to write to you simply by clicking on your
e-mail address or on some statement pointing
to your e-mail address. To do this, we use
the MAILTO: command which in effect creates
a link to your server by opening up the
e-mail box allowing a message to be sent
immediately. Statement that would allow
anyone to send me an e-mail:
Please tell me what you think of these
lessons by sending me, Manish,
an e-mail.
You won't be able to send me an e-mail
as I am using a dummy address so you can
experiment with the MAILTO: command. If
you want to send me an e-mail, you can do
it from my home page. To close the e-mail
box, just choose FILE and then CLOSE and
the e-mail box will disappear.
Here is the HTML line that gives the above
:
Please tell me what you think of these
lessons by sending me, <AHREF="mailto:zenvicky@yahoo.com">Manish</A>,
an e-mail.
Here, zenvicky@yahoo.com is my complete
e-mail address. For your own web pages,
just replace my e-mail address with yours.
Get rid of the
underline below link
You can get rid of underline below links
by adding this small script in between <Head>
and </Head>
</style>
<style>
<!--
a {text-decoration:none;}
//-->
</style>
Make link to download
file by your website visitors
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>
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.
Open link in
a new browser window
Well, first of all, this can be done easily
by your visitor if he wishes. All he has
to do is right click on the link and choose
"Open In New Window".
If we figure that you want to force this
action for whatever reason, you can add
target="_blank"
to the link...
Go to <a href="http://yahoo.com/"
target="_blank">Yahoo
!</a>
|