How to create a link to send email in HTML?

XHTMLWeb DevelopmentFront End Scripts

To create a link to send email, use <a> tag, with href attribute. The mailto link is added inside the <a> tag. Just keep in mind to add the email address where you want to receive the email in the mailto link.

Example

You can try to run the following code to create a link to send email in HTML.

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>HTML email link</title>
   </head>

   <body>
      <h2>Contact</h2>
      <p>For any queries: <a href="mailto:demo@example.com">Contact us</a></p>
   </body>
</html>
raja
Published on 01-Feb-2018 10:55:53
Advertisements