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

<a href="http://www.PuStudy.Com" target="name">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 Custom Values

You can use your own name for the target attribute. This can be any string with at least one character that does not start with a U+005F LOW LINE character.

Generally, this enables you to open a URL in a new window, then to open subsequent URLs in the same window (if you used _blank each one would open in its own new window — potentially producing an unwieldy number of tabs or windows).

However, there are some possible variations to this rule, depending on the context of the current page, and whether the page is sandboxed or not. See the W3C website for more information.

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.