HTML <a> Tag with target="_self" Attribute

<a href="http://www.htmlcodes.ws" target="_self">HTML codes</a>

How to Use the above Code

  1. Replace the value of the href attribute to be the URL of the document you're linking to.
  2. Replace the anchor text (HTML codes) with the text you want the user to see.

About the _self Value

The _self value of the target attribute specifies that the URL should open in the current browsing context.

About the target Attribute

The target attribute specifies the target frame to load the page into. Only to be used when the href attribute is present.

Possible values:

  • _blank
  • _self
  • _top
  • _parent
  • Any string with at least one character that does not start with a U+005F LOW LINE character.