Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Colin Lahsangah
Colin Lahsangah
485 Points

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
Full Stack JavaScript Techdegree Student 8,711 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
210,812 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: