HTML <a> target Attribute
Example
<a href="https://www.google.com" target="_blank">Google!</a>
Meaning
This attribute specifies the target window for a hypertext source link that references frames.
Notes: Specifying target="_blank" on <a> elements implicitly provides the same rel behavior as setting rel="noopener" which does not set window.opener.
Standard Syntax
<a target="_self|_blank|_parent|_top|frameName">
Advertisement
Attribute Values
| Value | Description |
|---|---|
| _self | Opens the link in the same window as it was clicked by user (default) |
| _blank | Opens the link in a new window or tab, but users can configure browsers to open a new window instead. |
| _parent | Opens the link in the parent frame. If no parent, behaves as _self. |
| _top | Opens the link in the full body of the window. If no ancestors, behaves as _self. |
| frameName | Opens the link in the specified iframe |