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

Get HTML and XHTML Step by Step 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.