How to Create an Email Link in HTML

Do you want to make it easy for your website visitors to send you an email? Creating an email link is a simple way to do it. Here's how to create an email link.

To create an a element (commonly known as an "anchor" tag) with an email link, you can use the following code:

<a href="mailto:info@example.com">Send an email to info@example.com</a>

The a element creates a hyperlink to the specified email address, and the mailto: protocol in the href attribute specifies that the link should open the user's default email client.

When clicked, the above link would open an email composition window with the specified email address already entered in the "To" field. The user can then add a subject, message, and send the email as usual.

Here's an example of how the resulting link might look in a web page:

<p>For more information, you can <a href="mailto:info@example.com">send an email to info@example.com</a>.</p>

The text within the a element, "Send an email to info@example.com", will be displayed on the page as a hyperlink that users can click on to send an email.

In addition to the email link, you can also use CSS to customize the appearance of the link text. For example, you can add styles to make the link bold, italic, or underlined, or to change the font size, style, or weight. This will give you full control over how the email link looks on your website.