Latest web development tutorials

HTML link target attributes

HTML link Tag Reference HTML <link> tag

Examples

In the following example, loads the linked document in a new window:

<head>
<link rel="parent" href="wildcats.htm" target="_blank">
</head>


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Note: Almost no mainstream browsers support target property.


Definition and Usage

HTML5 does not support the <link> target property.

Attribute specifies the target to load the linked document in which window or frame.


grammar

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

Property Value

描述
_blank 在新窗口中打开被链接文档。
_self 默认。在相同的框架中打开被链接文档。
_parent 在父框架集中打开被链接文档。
_top 在整个窗口中打开被链接文档。
framename 在指定的框架中打开被链接文档。


HTML link Tag Reference HTML <link> tag