Languages
[Edit]
EN

HTML - how to make email address clickable?

3 points
Created by:
Greg
1505

In this article, we're going to have a look at how to create email link in pure HTML that opens mail client after click operation.

Quick solition:

Use mailto: prefix for your email address link.

Practical exmaple:

// ONLINE-RUNNER:browser;

<!doctype>
<html>
<body>
  <a href="mailto:my@email.com">my@email.com</a>
</body>
</html>

 

Hey 👋
Would you like to know what we do?
  • Dirask is a friendly IT community for learners, professionals and hobbyists to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.