The mailto tag in HTML is a very practical and user-friendly label, and in most cases people use it.
<a href= "Mailto:[email protected]" >[email protected]</a>
In this way, when we click on the [email protected] link, the browser will automatically select the local default mail software for us and put the mailto tag [email protected] email address in the mail software's sending address, Less to the annoyance of sending an address when we send e-mail, but also to avoid the wrong email address.
In fact, mailto tags have a more practical way of using. For example: add mail Default title, CC address, BCC address, message content ....
Here's how to use it in detail:
1. Add a default title to a message
<a href= "mailto:[email protected]?subject= mail default title" >[email protected]</a>
2. Add the default CC address to the message
<a href= "Mailto:[email protected][email protected]" >[email protected]</a>
3. Add a default BCC address for mail
<a href= "Mailto:[email protected][email protected]" >[email protected]</a>
4. Add the default content to the message
<a href= "Mailto:[email protected]?body= welcome you to Phplamp Blog station-http://www.phplamp.org" >[email protected]</a>
5. Multiple email addresses
<a href= "Mailto:[email protected],[email protected]" >[email protected]</a>
6. To a comprehensive type: Add the default cc address, title, content
<a href= "mailto:[email protected][email Protected]&subject=phplamp Blog Station &body= welcome you to Phplamp Blog station-http:// www.phplamp.org ">[email protected]</a>
As can be seen from the above example, if there are multiple default values to add, and the mail address is connected to the character "?", the default value of the connection between the symbol is "&".
Html mailto tag details how to use