How to Convert a URL in an Email Address

How to Convert a URL in an Email Address thumbnail
Convert a URL in an Email Address

When you are building your website one of the most important elements is your ability to create links. Creating clickable URLs that lead to another Web page are essential. But another important function of URLs is to create a link to an email address. Converting a URL into an email address is a very simple bit of HTML code that will open the user's default email program and insert your desired email address into the address line automatically.

Things You'll Need

  • HTML editor
Show More

Instructions

    • 1

      Open your HTML editing program and open the document which you want to add an email link into.

    • 2

      Add the following code to your document: <a href="mailto:youraddress@yourdomain.com">Your text.</a> Replace "youraddress@yourdomain.com" with the actual email address you wish to use for this purpose. Furthermore, replace "Your text" with whatever text you wish to be linked. For example, you may want your readers to click on the words, "my email" or something similar.

    • 3

      Customize your link even further if desired. There are a number of different attributes that can be added to the simple line of code above. For example, if you want the subject of the email your are to receive to be specified, add "?subject=Your desired subject" to the end of the email address in the code. Make sure there is no space between the address and the new code. For example, it should look like this: <a href="mailto:youraddress@yourdomain.com?subject=Your desired subject">Your text</a>. For more "mailto" options, see the link in the references section below.

    • 4

      Save your document in your HTML editor and upload it to your server.

Related Searches:

References

  • Photo Credit computer image by blaine stiger from Fotolia.com

Comments

You May Also Like

Related Ads

Featured