HTML Email Link

This is very easy to put an HTML email link on your page. But while doing so, you need to put your email address on your web page which can cause a spamming problem for your email account. There are many guys over the internet that can run programs to harvest these types of emails for spamming. So if you are going to put your email link on a public website then you have to be prepared for anti-spamming as well.

HTML Email Tag:

HTML <a> tag provides you facility to specify an email address to send an email. While using <a> tag as an email tag then you will use mailto:email address along with href attribute.

For example:
Try it

<html>
<head>
<title>techTutorialsOnline title</title>
</head>
<body>
<a href= "mailto:anand.deepak9988@gmail.com">Send Email</a>
</body>
</html>

 

Default Email Subject and Body:

You can specify a default email subject and email body along with your email address.

For example:

<html>
<head>
<title>techTutorialsOnline title</title>
</head>
<body>
<a href="mailto:anand.deepak9988@gmail.com?subject=Feedback from techTutorialsOnline.com &body=Message by User">
Send Feedback
</a>
</body>
</html>