Latest web development tutorials

HTML a target property

HTML a Tag Reference HTML <a> tag

Examples

target attribute specifies where to open the linked document:

<a href="http://www.w3big.com" target="_blank"> visit this tutorial! </a>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the target attribute


Definition and Usage

target attribute specifies <a> tag opens the linked document location.


grammar

<a target="_blank|_self|_parent|_top|framename">

Property Value

value description
_blank Opens the linked document in a new window.
_self default. Opens the linked document in the same frame.
_parent Centralized open the linked document in the parent frame.
_top Opens the linked document in the entire window.
framename Opens the linked document in a frame specified.


HTML a Tag Reference HTML <a> tag