How do I add a mailto tag in HTML?
To create a mailto link in HTML, we need to use the HTML tag with its href attributes, and then use the mailto link. Let’s create a simple mailto program in the HTML. Click on the Click to send email link; it redirects to the installed mail account, as shown below. In the above example, when we run the mail.
What is the HTML code for mailto?
mailto: HTML email link, what is it, how to create, examples and code generator….How to create mailto link in HTML.
Parameter | Description |
---|---|
mailto:[email protected] | e-mail recipient address |
[email protected] | carbon copy e-mail address |
[email protected] | blind carbon copy e-mail address |
subject=subject text | subject of e-mail |
How do you use a mailto tag?
A HTML mailto link makes it easy for a user to contact you over email. When a mailto link is clicked, the user’s email client opens. A new email is created which is addressed to the email in the mailto link. The most common way to link an email in HTML is by using an anchor tag that has a href attribute.

What is a mailto href attribute?
A mailto link is a kind of hyperlink ( ) with special parameters that lets you specify additional recipients, a subject line, and/or a body text.
What for is mailto function used?
mailto is a Uniform Resource Identifier (URI) scheme for email addresses. It is used to produce hyperlinks on websites that allow users to send an email to a specific address directly from an HTML document, without having to copy it and entering it into an email client.

Why is my mailto link not working?
If mailto links don’t open for you the way they should, a quick look at the system or browser settings should do the job. In Windows, head to Settings -> Apps -> Default apps. Scroll down and pick “Choose default apps by protocol” from the menu. For ‘Mailto’, choose the client of your choice.