Sunday, June 22, 2014

HTML - Adding Links - Email links

You can also use the anchor element to add an email link to a web page. Here’s a sample of the code used to do so:
<a href=”mailto:myname@myemailaddress.com”>Email me</a>
As you can see, an email link is as simple as adding the mailto: preface and a valid email address to the value of the href attribute. Remember that the content in between the opening and closing a tags is what the user will click to activate the link.

One drawback of email links is that they open your email address to spam. The best method to block an email address from spammers is to use a form to allow users to contact you through a web site. When that isn’t possible, check out the options listed here:
http://csarven.ca/hiding-email-addresses.

No comments: