How to Link to E-Mail in HTML

In this article we will discuss about how to link to E-Mail address in HTML.
  • 2254

In this article we will consider that how to send email to a particular id or website and it is done using the <a href> Tag in HTML. We can also include the specific subject while linking to the E-Mail address if we want. We can do this by using the subject=setting: in <a href> Tag in HTML.

HTML Code:

<html>

<body>

    <a href="mailto:youremailaddress">Email Me</a>

</body>

</html

Output:

Image17.jpg

Here is the example of including subject while sending the email to the particular id:

HTML Code:

<html>

<body>

    <a href="mailto:[email protected]?subject=SweetWords">Send Mail</a>

</body>

</html>

Output:

 Image18.jpg

Ask Your Question


Got a programming related question? You may want to post your question here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.