English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Comprehensive

HTML link target attribute

The target attribute specifies the window or frame in which the linked document is loaded.

 HTML <link> tag

Online Example

In the following example, the linked document is loaded into a new window:

<head>
<link rel="parent" href="new-windows.html" target="_blank">
</head>

Browser Compatibility

IEFirefoxOperaChromeSafari

Note:Almost no mainstream browsers support the target attribute.

Definition and Usage

HTML5 The <link> target attribute is not supported.

The target attribute specifies the window or frame in which the linked document is loaded.

Syntax

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

Attribute Value

ValueDescription
_blankOpen the linked document in a new window.
_selfDefault. Open the linked document in the same frame.
_parentOpen the linked document in the parent frame set.
_topOpen the linked document in the entire window.
framenameOpen the linked document in the specified frame.


 HTML <link> tag