How to Insert mailto in Anchor Tag Link Using HTML

In this tutorial, learn how to insert mailto in anchor tag link using HTML. You can add mailto in an anchor tag and open in the same window or new window. Get visitors to send mail immediately by clicking the link contains mailto system.

If you have a mail client on your system and mailto is added to the anchor link. The mail client will automatically get opened when you click the link. The mail is automatically added to your mail client. You only need to add mail content and click send.

This can be useful if you have a blog website and want your visitors query. You don’t need any jQuery or javascript to perform this task.

How to Insert mailto in Anchor tag

To perform this task, you have to use the below-given code. The code contains the mailto keyword and the mail id where you want to get visitors query.

Output

[email protected]

The above example contains a link with mail as content. When visitors click the above link, the mail client automatically gets opened. This system attract visitors to send query easily. With this method, website owner easily gets email to make blog popular.

This also increase your returning visitors. It also helps any blogger or website owner to get more sales(if you are a online marketer).

Add mailto in Anchor Tag and Open in the New Tab

In addition to the above-given example, you can open the mailto link in the new window. You have to use the attribute with value as target="_blank". See the code given below to understand how to perform this task.

Output

[email protected]

The above example contains the link with inserted mailto mail id in an anchor tag. If you click the above link, it takes you to the new tab and opens the mail client.

You may also like to read.

Hope, you like this tutorial of how to insert mailto in anchor tag link using HTML. If you have any query regarding the tutorial, please comment below.

Also tell me, which method are you using to send mail and open mail client automatically.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.