SEARCH W7R

Wednesday, June 27, 2012

How to Create Email Links with HTML

w7r.blogspot.com

Copying and pasting an email address into the "To:" prompt of an email can be surprisingly unpleasant especially when the email benefits the receiver and not the sender.

In a blog such as W7R it is important to allow users to email you with as little effort as possible (without the copying and pasting).


About the Email Link Syntax

  • The 'a' is the same anchor tag used with website links
  • href is an HTML attribute of the anchor tag, 'a'
  • After href comes an = sign and a destination in parenthesis
  • The format for email destinations is mailto: + an email
  • Replace AnEmailAddress@gmail.com with your own email
  • </a> is a closing tag for an anchor

No comments: