Open In App

HTML | <link> target Attribute

The HTML <link> target Attribute is used to specify the window or a frame where the linked document is loaded. It is not supported by HTML 5.

Syntax:



<link target="_blank|_self|_parent|_top|framename">

Attribute Values:

Example:






<!DOCTYPE html> 
<html>
       
<head>
    <title>
        HTML link target Attribute
    </title>
</head>
  
<body
    <center
        <h1 style="color:green;"
            GeeksforGeeks 
        </h1
          
        <h2
            HTML <link> target Attribute
        </h2
          
        <link href="geeksforgeeks.org" target="_blank">
    </center
</body
  
</html

Output:

Supported Browsers: The HTML <link> target attribute is not supported by any browsers.

Article Tags :