html link open in a new tab 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: a tag open in new tabn

<a target="_blank" href="https://example.com">Link text</a>

Example 3: open new tab href

<a target="_blank" rel="noopener noreferrer" href="http://your_url_here.html">Link</a>

Example 4: open link in new tab html

<a href="#" rel="noopener noreferrer" href="link"></a>

Tags:

Css Example