How to open Gmail on click of anchor tag in HTML

How to open Gmail on click of anchor tag in HTML

In this blog, you will learn how to open Gmail with the click of the anchor tag, beginners mostly used mailto in href to open mail on outlook but when you want to open mail to google there is different syntax let's see the following code:

HTML Code:

<a href="https://mail.google.com/mail/?view=cm&fs=1&[email protected]">[email protected]</a>

In this above code replace the [email protected] id with your Gmail id.