HTML <a> Attributes

HTML a 标签参考手册HTML <a> Tag

Examples

The target attribute specifies where to open the linked document:

<a href="http://www.example.com" target="_blank">Visit Example!</a>

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the target attribute.


Definition and Usage

The target attribute of the <a> tag specifies where to open the linked document.


Syntax

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

Attribute Values

Value Description
_blank Opens the linked document in a new window.
_self Default. Opens the linked document in the same frame.
_parent Opens the linked document in the parent frameset.
_top Opens the linked document in the entire window.
framename Opens the linked document in the specified frame.


HTML a 标签参考手册HTML <a> Tag

Other Extensions