HTML <link> target Attribute
Example
In the following example, the linked document is loaded in a new window:
<head>
<link rel="parent" href="wildcats.htm" target="_blank">
</head>
Definition and Usage
The <link> target attribute is not supported in HTML5.
The target attribute specifies a window or a frame where the linked document is loaded.
Browser Support
Attribute | |||||
---|---|---|---|---|---|
target | Not supported | Not supported | Not supported | Not supported | Not supported |
Syntax
<link target="_blank|_self|_parent|_top|framename">
Attribute Values
Value | Description |
---|---|
_blank | Load in a new window |
_self | Load in the same frame as it was clicked |
_parent | Load in the parent frameset |
_top | Load in the full body of the window |
framename | Load in a named frame |
HTML <link> tag