HTML <a> Tag with target="_blank" Attribute
<a href="http://www.htmlcodes.ws" target="_blank">HTML codes</a>
How to Use the above Code
- Replace the value of the
hrefattribute to be the URL of the document you're linking to.
- Replace the anchor text (
HTML codes) with the text you want the user to see.
_blank value of the
target attribute indicates that the URL should open in a new window.
However, there are some possible variations to this rule, depending on whether the page is sandboxed or not. See the W3C website for more information.
target attribute specifies the target frame to load the page into. Only to be used when the
href attribute is present.
- Any string with at least one character that does not start with a
U+005F LOW LINEcharacter.