HTML mail links and anchor points links

Source: Internet
Author: User

Anchor Point Links:

First, set an anchor point tag, and then click on the anchor point tag when the page automatically arrives at the anchor point marker position.

Set tag:

<name= "mn"> anchor Mark </a><    href = content of "#idmn" > Anchor </a >   

Email Link:

<href= "mailto:[email protected]?" [Email protected] "></a><!-- send email to [email protected] using [ Email protected], parameters can be omitted-- 

mailto: Usage of mailing labels (RPM):

Http://www.5icool.org/a/201003/308.html

Mailto is a very useful HTML tag in web design, and many friends who have personal web pages like to write their e-mail address in the prominent position of the website, so that once the Web browser clicks on a super connection composed of mailto with the mouse, will automatically open the default e-mail client software in the current computer system, such as Outlook Express and Foxmail. Of course, the use of mailto tags is not just as simple as it says, it has other applications.

1, if we create a Web page like "mailto: [email protected]" Such a super connection, with the mouse click on the super connection, the browser will automatically invoke the system's default mail client program, At the same time in the Mail editing window of the recipient Settings column automatically write the recipient's address, and other content is blank, left to the visitor to fill in;

2, if you click the e-mail super connection, you want the system to automatically open the E-mail editing window, in addition to the recipient address bar automatically fill in the content, in the CC address bar can also automatically fill in the email address you need, you can directly in the HTML source code of the Web page to insert a shape such as " mailto: [email protected][email protected] "such statement, where [email protected] will automatically appear in the recipient address bar, [email protected] will automatically appear in the CC address bar;

3, if you want to be in the pop-up mail editing window can automatically fill in the subject content of the message, you can use the shape of "mailto: [email protected]?subject= ' mailto ' cool station code" such as HTML statements, When a browser clicks an e-mail super connection composed of this statement with the mouse, it automatically appears in the recipient address bar of the subsequent open Mail editing window [email protected], and the "mailto ' Cool station code" will automatically appear in the theme settings bar;

4, if you want to enter multiple e-mail addresses in the recipient address bar, then you can use the form "mailto: [email protected];[email protected]" Such statements, remember that each e-mail between ";" separated, In this way, when the browser clicks on the e-mail super connection created by the statement, the recipient address of [email protected], [email protected] will appear in the recipient address bar of the popup Message editing window, and the browser will be able to send e-mails to these people at the same time;

5, the e-mail address appearing in the web page is often searched by some automatic search programs such as "Mail-robot", so that others can easily use the email address to send you a variety of spam, in order to be able to refuse these messages thousands of miles away, We can write the e-mail address on the Web page in ASCII format, and remember that each ASCII code must be preceded by a "", for example, we use "mailto: [email protected]" in the page to create an email super connection , after clicking on the hyperlink, we find that in the message receiving window, the recipient's address bar will still display [email protected], while other kinds of automatic search tools do not correctly recognize such ASCII code, Therefore, the user receives a variety of unsolicited spam messages will be greatly reduced;

6, in general, when the browser clicks the e-mail Super connection, the system in the default open mail client software, only automatically fill in the recipient Address bar, and the other settings bar still appear blank, if you want to automatically put the subject, CC, dark send or even the content is filled, you can use the shape of " mailto: [email protected][email protected]&[email protected]&subject= ' mailto ' Cool station code &body= Mailto label for a comprehensive application to illustrate! "This statement, the first function in this statement with a"? " At the beginning, each of the following functions starts with "&", and when you click the e-mail address with your mouse, in the subsequent Open Mail editing window, we will see the "email protected" automatically filled in the address bar of the recipient and automatically fill in the CC address bar [email Protected], in the dark Send address bar automatically fill in the [email protected], in the Subject column automatically fill in the "' mailto ' Cool station code", in the body of the letter will automatically appear "mailto tag comprehensive application examples!" "Such a text.

The above appeared [email protected], [email protected], [email protected] are for the convenience of description, and by the author arbitrarily set, we can according to their own requirements, with their own real e-mail address to replace them; If you want to use Mailto to implement multiple functions at the same time, the first feature must have a "?" At the beginning, each of the following functions starts with "&", in addition, CC is the CC address, BCC is sent to the address, subject after the subject of the message, body after the content of the message.

If you want to wrap the body, simply add "%0d%0a" between the lines and rows.

<a href= "Mailto:[email protected]?subject=ccc&body=xxx%0d%0ayyy" >aaa</a>

HTML mail links and anchor points links

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.