Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Basics Structuring Your Content Sectioning Content with <article>, <nav> and <aside>

how to you make a link to your email or gmail?

is there anyway i can make a link to my email?

1 Answer

Matthew Carson
Matthew Carson
8,994 Points

In an anchor tag's href attribute you can use 'mailto:' followed by an email address. This will open an new message draft in the user's default email program.

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

MDN Docs

Steven Parker
Steven Parker
231,271 Points

:warning: Before doing this on pages accessible to the general public, consider that bots scour the internet looking specifically for tags like this to collect addresses for sending spam to.   :see_no_evil:

thank you for your time.