HTML <base> target attribute
Definition and Usage
target
Attribute to specify the default target for all hyperlinks and forms on the page.
You can use each hyperlink/form's target
Attribute to override this attribute.
Example
Specify the default target for all hyperlinks and forms on the page:
<head> <base target="_blank"> </head>
Syntax
<base target="_blank|_self|_parent|_top">
Attribute Value
Value | Description |
---|---|
_blank | Open links in a new window or tab. |
_self | Default. Open links in the same frame when clicked. |
_parent | Open links in the parent frame. |
_top | Open links in the entire window. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |