HTML <a> Attributes
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
![]()
![]()
![]()
![]()
![]()
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. |
Other Extensions
HTML <a> Tag