HTML (Mailto) and Its Example

HTML Email :

Mailto link is a type of HTML link that activates the default mail client on the computer for sending ane-mail. The web browser requires a default e-mail client software installed on his computer in order to activate the e-mail client. If you have Microsoft Outlook, for example as your default mail client, pressing a mailto link will open a new mail window.

You can have another option to facilitate people to send youemails. One option could be to use HTML forms to collect user data and then use PHP or CGI script to send anemail. <br><br>HTML <a> tag provides you option to specify an email address to send an email. While using <a> tag as an email tag, you will use mailto: email address along with href attribute. Following is the syntax of using mailto instead of using http.

How To Create An HTML Mailto Link

Example 1:

output:


Email Example 2:

output: