---
type: link
tags: [mine]
created: 2025-11-06T02:51:46.190Z
updated: 2025-11-15T20:19:56.821Z
---# HTML: mailto

**URL:** [https://html.com/anchors-links/](https://html.com/anchors-links/)

HTML: mailto Let’s look back at the mailto link we created in the previous example. Here’s that code again: We'd love for you to get in touch with us! While that link is useful, the way it opens isn’t ideal. Depending on how your computer and browser are configured, it’s possible that clicking on the link created by that text will redirect your browser window away from this website to a web-based email application such as Gmail or Yahoo! Mail. While we certainly want to encourage our visitors to contact us, we don’t want to do so at the expense of sending visitors away from our website. The answer to this conundrum is the target attribute paired with the _blank value. We'd love for you to get in touch with us! When we add the target attribute and _blank attribute to our link we tell the visitors browser to open the link in a new (blank) browser tab or window. If we render that code in the browser, when a visitor clicks the link it will open in a new tab.


---
**Keywords:** mine
