![]() |
Incorporating email links into HTML pages facilitates a smooth way for users to send a message directly from the webpage. We will see how to create these email links, making your web pages user-friendly and interactive. Table of Content Using Mailto Protocol with Predefined SubjectTo create a link to send an email in HTML, we use the mailto protocol. The basic structure for creating a link to send an email in HTML uses the standard anchor tag <a> but with the href attribute pointing to a special mailto protocol instead of a regular URL. After the email address, we can add a question mark (?) to separate parameters. We use the keyword subject followed by an equal sign (=) and then the text to add the subject. Example: Creating a link to send email in HTML Using Mailto Protocol with a Predefined Subject
Output : ![]() Email Link with Predefined Subject Creating a Link to send Emails with predefined CC and BCCTo define BCC recipient we use the “bcc” attribute. Similarly, we use the “cc” attribute to define the CC recipient. We will use ampersand (&) to join parameters. We used &[email protected] to add the carbon copy recipient and &[email protected] to add a blind carbon copy recipient. Example: Creating a link to send email in HTML with predefined CC (Carbon Copy) and BCC (Blind Carbon Copy)
Output: ![]() Email Link with Predefined CC and BCC |
Reffered: https://www.geeksforgeeks.org
HTML |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 17 |