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.
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.
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.
<a href="mailto:firstname.lastname@example.org" target="_blank">email@example.com</a>
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.
- Define CSS for Internet Explorer and add IE-only stylesheet
- Highlight alternate table row color using CSS
- Add shadow effect on text HTML using CSS
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.