---
title: "How to create a hyperlink that opens in a new tab/window in HTML?"  
description: "How to create a hyperlink that opens in a new tab/window in HTML?"  
author: "Steilla Mitchel"  
published: 2024-06-05  
updated: 2024-06-05  
canonical: https://www.mindstick.com/forum/160678/how-to-create-a-hyperlink-that-opens-in-a-new-tab-window-in-html  
category: "html"  
tags: ["html", "html5", "html hyperlink"]  
reading_time: 1 minute  

---

# How to create a hyperlink that opens in a new tab/window in HTML?

How to create a hyperlink that [opens](https://www.mindstick.com/news/2570/china-s-new-space-station-opens-for-business-in-an-increasingly-competitive-era-of-space-activity) in a new tab/[window](https://www.mindstick.com/forum/161285/how-does-the-window-console-object-work-in-javascript) in [HTML](https://www.mindstick.com/articles/1530/design-a-simple-stylish-calculator-using-html-css-and-javascript)?

## Replies

### Reply by Ashutosh Patel

## Hyperlink in HTML

There is HTML **<a>** tag is used to create the hyperlink on the web page.

## Syntax-

```html
<a href="https://example.com" target="_blank">Visit Example.com</a>
```

To create a hyperlink that opens in a new tab or window in HTML, you can use the `target`attribute with the value "**_blank**".

## Example-

```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>hyperlink Example</title>
</head>
<body>
    <p>To open the google click on
        <a href="https://www.google.com" target="_blank">Google</a>
    </p>
</body>
</html>
```

## Explaition

- The <a> tag is used to create a hyperlink.
- The href attribute specifies the URL of the destination page.
- The target="_blank" attribute-value pair tells the browser to open the linked page in a new tab or window, depending on the browser's settings.


---

Original Source: https://www.mindstick.com/forum/160678/how-to-create-a-hyperlink-that-opens-in-a-new-tab-window-in-html

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
