HTML link a tag

Go to a web site or page

<a href="http://example.com">Website</a>
Copy the code

Go to an anchor point within the page

// Insert id in HTML document<h3 id="tips">Detailed instructions</h3>
<p>content</p>// Create a link to "Details" in the HTML document<a href="#tips">Detailed instructions</a>
Copy the code

Or, go to an anchor point in another page

<a href="http://example.com/index/#tips">Detailed instructions</a>
Copy the code

Create email links

When using hyperlinks to send emails, use the keyword mailto

The following is an example:

<a href="mailto:[email protected]">E-mail</a>
Copy the code

In this way, the default email program of the system will be activated and sent to [email protected], and my email address has been filled in by the recipient.

How to cc, BCC when creating email links? When copying, use the keyword cc. When encrypting, use the keyword BCC

The following is an example:

<a href="mailto:[email protected][email protected]&[email protected]" rel="nofollow">Send E-mail</a>
Copy the code

Parameter Description:

parameter describe
mailto:[email protected] Mail receiving address
[email protected] Cc address
[email protected] BCC address
subject=subject text Email subject
body=body text Email content
? The first parameter delimiter
& Other parameter delimiters

Note: For multiple email addresses; Use %20 instead of space.

On the difference between cc and BCC:

Cc:

English name: Carbon Copy, also referred to as CC. In Internet terms, cc is the act of sending an email to someone else at the same time. A user sends a copy of an email to someone else, who can see the user’s E-mail. Like the recipient address bar, the length cannot exceed 1024 characters. In general, when using “cc” services, multiple people cc email addresses are used; Space.

BCC:

Blind Carbon Copy, also known as “Blind Carbon Copy”, differs from cc only in that it makes it impossible for individual recipients to see who else the email was sent to. BCC is a very useful feature. If you are sending an email to hundreds or thousands of recipients at a time, it is best to use BCC. This protects individual recipients’ addresses from being easily accessed by others and saves recipients the time to receive a large number of E-mail addresses.