Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML base target attribute

HTML target property

HTML base Tag Reference HTML tag

Example

Specify a default target for all links on the page:

<

head

<

base

target

=

"

_blank

"

head

Try it »


Browser support

property
target Yes Yes Yes Yes Yes

Definition and Usage

The target attribute specifies where to open all links on the page.

This attribute can be overridden by the target attribute of a link or form.


Differences between HTML 4.01 and HTML5

HTML5 no longer supports Frames and framesets. Therefore, iframes commonly use _parent, _top, and framename values.


Syntax



Attribute values

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

HTML base Tag Reference HTML tag