Hyperlinking to an E-Mail Address
Hyperlinks can point to anything, not just to Web pages. You can create e-mail hyperlinks, for example, that start the user’s default e-mail program, create a new message, and enter the recipient’s address. (You can also set it to fill in the message subject if you like.)
E-mail hyperlinks are useful when you want to direct someone to send e-mail to a
particular person. For example, it is common to include a link to e-mail a
site’s Webmaster. To create a hyperlink to an e-mail address, use the same
href= argument as before, but instead of a Web address, type
mailto: followed by the e-mail address, like this:
<a href="mailto:support@adatum.com">Contact Us</a>
Caution
Not everyone who has Web access also has an appropriate ...
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