Email Links
An email link is just like a standard link, except that, instead of sending you to another page, the link opens the associated email application so you can email the individual directly. Email links are especially useful for contact emails for individuals, staff members on a company site, and customer service and support feedback.
Email links use the mailto: attribute along with the href attribute and the recipient's email address to accomplish this function (see Example 2-12).
Example 2-12. Using the mailto: attribute to create an email link
<a href="mailto:molly@molly.com">email molly</a>
Figure 2-11 shows the results.
Figure 2-11. Clicking on a mailto: link opens your email software and inserts the email address into the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access