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 ...

Get Spring Into HTML and CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.