Enter email address html
Here is an example of how to enter an email address in HTML:
<a href="mailto:[email protected]">[email protected]</a>
Replace [email protected]
with the actual email address you want to link.
This will create a link that, when clicked, will open the user's default email client with the email address pre-filled in the "To" field.
You can also add additional attributes to the a
tag to customize the link. For example:
subject
: sets the subject line of the emailbody
: sets the body of the emailcc
: sets the CC recipientsbcc
: sets the BCC recipients
Here is an example with some of these attributes:
<a href="mailto:[email protected]?subject=Hello&body=Hello%20again&[email protected]">
[email protected]
</a>
This will create a link that, when clicked, will open the user's default email client with the email address pre-filled in the "To" field, and the subject line set to "Hello". The body of the email will be "Hello again", and the CC recipient will be "[email protected]".