Recently, Brother Xiaoma has been a little busy, so there is nothing to update! I hope the "yin people" who have visited my blog will not complain about me,,,,,
However, today Xiaoma brother used an HTML attribute that is relatively unfamiliar to me, which is the mailto attribute. Attribute, it's not entirely correct. Because it is used as a prefix for the href attribute.
Its general function is to add a click effect to an email address. After clicking the email address, it will jump directly to or enter an email software on the computer. It is convenient for users to send emails more quickly and without errors!
No more nonsense, let’s go straight to the examples!
HTML structure:
See this structure, yes Isn't it very simple and practical to rush? Of course not, he still has many attributes and functions that can be added!
Here are the detailed usage methods:
1. Add a default title to the email
2. Add to the email Default CC address
3. Add the default BCC (Bcc) address to the email
4. Add default content to the email
5. Multiple email addresses
6. A comprehensive one: add default carbon copy address, title, content
As can be seen from the above example, if there are multiple default values that need to be added, the character connected to the email address is "?", and the default values are between The connecting symbol is "&".
But what I want to say The key point is that this function is applicable to a certain email client or software that comes with or is installed on the user’s computer. Otherwise, users need to copy the email address themselves, and then manually paste the address on the web page or QQ mailbox before sending the email.
Also, different browsers have different interpretations of this attribute. Firefox will pop up a prompt box to let you choose what email software to use to send emails. IE will pop up a warning box telling you that there is no relevant email software on your computer. If other browsers such as Google cannot search for the corresponding email software or client on the computer. There is no prompt. At that time, users will need to do it manually.