English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The target attribute specifies the window or frame in which the linked document is loaded.
In the following example, the linked document is loaded into a new window:
<head> <link rel="parent" href="new-windows.html" target="_blank"> </head>
IEFirefoxOperaChromeSafari
Note:Almost no mainstream browsers support the target attribute.
HTML5 The <link> target attribute is not supported.
The target attribute specifies the window or frame in which the linked document is loaded.
<link target="_blank|_self|_parent|_top|framename">
Value | Description |
---|---|
_blank | Open the linked document in a new window. |
_self | Default. Open the linked document in the same frame. |
_parent | Open the linked document in the parent frame set. |
_top | Open the linked document in the entire window. |
framename | Open the linked document in the specified frame. |