In this tutorial you will learn about the HTML Email Links and its application with practical example.
HTML Email Links allows us to create hyperlinks to an email address. Links to an email address is created using the HTML <a> </a> tag while in this case instead of passing URLs we put recipient’s email address. mailto
attribute is used to specify the email address in your anchor tag.
Table Of Contents−
Syntax:
1 2 3 4 5 6 7 |
<a href= "mailto:abc@example.com">Send Email</a> //Email with default subject <a href="mailto:abc@example.com?subject=Query&body=Example_message"> Send Query </a> |
Output:
Now when user clicks on any of this link it will launch default Email Client on our computer. Example: outlook express