``` --- "> ``` --- " />
Easy Tutorial
❮ Av Met Load Att Button Formenctype ❯

HTML <base> target Attribute

HTML <base> Tag

Example

Set a default target for all links on a page:

<head>
  <base target="_blank">
</head>

Browser Support

Attribute Chrome Edge Firefox Safari Opera
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 typically use _parent, _top, and framename values.


Syntax

<base target="_blank|_self|_parent|_top">

Attribute Values

Value Description
_blank Opens the linked document in a new window or tab.
_self Default. Opens the linked document in the same frame.
_parent Opens the linked document in the parent frame set.
_top Opens the linked document in the full body of the window.
framename Opens the linked document in a named frame.
❮ Av Met Load Att Button Formenctype ❯