href open new page code example

Example 1: open page with html

<!DOCTYPE html>
## Code by Scratchy (Twitter @S_cratchy)
<html>
<body>

<a href="https://www.Google.com" target="_blank">Gooooooooogle!</a> 

</body>
</html>

Example 2: html open link in new tab

<!-- Use the target="_blank" attribute to open a link in a new tab -->
<a href="link" target="_blank">This link is in a new tab.</a>

Example 3: how to open in new page link html

<a href="https://insert.url" target="_blank" rel="noopener noreferrer">The Website Linked</a>

Example 4: open link in new tab

<a href="The link of the page" target="_blank">Open page in new tab</a>

Tags:

Html Example