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.

  • _blank

    Opens the target page in a new tab.

  • _parent

    Opens the target page in its parent's tab/context. Opens in _self if there is no parent.

  • _top

    Opens the topmost browsing context. Opens in _self if there is not any.