- Instant help with your Html coding problems

Create a mailto link in HTML

Question:
How to create a mailto link in HTML?
Answer:
<a href="mailto:john@demosite.com">Send feedback</a>
Description:

The href attribute of the anchor element defines the URL that the hyperlink points to. Links are not restricted to HTTP-based URLs — they can use any URL scheme supported by browsers. For example to send an email using the email address with a mailto: prefix.

Such a link will open the default email client prepopulated with the email address.

Share "How to create a mailto link in HTML?"
Tags:
html mailto link, open mail client, trigger mail client
Technical term:
Create a mailto link in HTML