How to pre-fill your email?

Go Back

Its not a big thing. I know

Recently, I was adding my social links in about me page and did not know how to show my email. Many sites have email link and when you click on it, it opens gmail app and their email will be selected or, how to say it, will be written immediately. This was something i did not know.

What you should do is add mailto: keyword before your email inside href attribute in "a" tag

          
            <a href="mailto:your-email.gmail.com">email</a>
          
        

So, when you click on it, it opens whatever email client the user has with your address pre-filled.

This was something new for me. If you found out this useful, then I am happy.