Atributo de destino HTML <base>

❮ Tag HTML <base>

Exemplo

Especifique um destino padrão para todos os hiperlinks e formulários em uma página:

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

Definição e uso

O targetatributo especifica o destino padrão para todos os hiperlinks e formulários na página.

Esse atributo pode ser substituído usando o targetatributo para cada hiperlink/formulário.


Suporte ao navegador

Attribute
target Yes Yes Yes Yes Yes

Sintaxe

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

Valores de atributo

Value Description
_blank Opens the link in a new window or tab
_self Default. Opens the link in the same frame as it was clicked
_parent Opens the link in the parent frame
_top Opens the link in the full body of the window

❮ Tag HTML <base>