how to have a link open in a new tab html code example

Example 1: a tag open in new tabn

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

Example 2: open link in new tab

<a href="url" target="_blank">...</a>

Example 3: how to make html open link in new tab

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body>
    <a href="INSERT LINK" target="_blank">NAME</a>
</body>
</html>

// code by Tyler100OOO (Twitter @TylerCode1)

Example 4: how to open up a new tab in html

Open new tab in browser

Tags:

Misc Example