HTML Tags
Global Attributes
Attributes
HTML Tutorial
Target HTML Attribute
HTML new page opening location
Attributes
target
Attribute target defines where the result page needs to be displayed.
-
_self
This attribute is the Default. The target page is opened in the current tab / context itself.
<a target="_self"> Open in the current page</a>Copy -
_blank
Opens the target page in a new tab.
<a target="_blank"> Open in a new tab page</a>Copy -
_parent
Opens the target page in its parent's tab/context. Opens in
_self if there is no parent.<a target="_parent"> Open in the parent tab page</a>Copy -
_top
Opens the topmost browsing context. Opens in
_self if there is not any.<a target="_top"> Open in the parent tab page</a>Copy