HTML target property
Example
Specify a default target for all links on the page:
<
head
<
base
target
=
"
_blank
"
headTry it »
Browser support
| property | |||||
|---|---|---|---|---|---|
| target | Yes | Yes | Yes | Yes | Yes |
Definition and Usage
The target attribute specifies where to open all links on the page.
This attribute can be overridden by the target attribute of a link or form.
Differences between HTML 4.01 and HTML5
HTML5 no longer supports Frames and framesets. Therefore, iframes commonly use _parent, _top, and framename values.
Syntax
Attribute values
| 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 frameset. |
| _top | Open the linked document in the entire window. |
| framename | Open the linked document in the specified frame. |
HTML