Atributo de destino HTML <base>

❮ Etiqueta HTML <base>

Ejemplo

Especifique un destino predeterminado para todos los hipervínculos y formularios en una página:

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

Definición y uso

El targetatributo especifica el destino predeterminado para todos los hipervínculos y formularios de la página.

Este atributo se puede anular utilizando el targetatributo para cada hipervínculo/formulario.


Compatibilidad con navegador

Attribute
target Yes Yes Yes Yes Yes

Sintaxis

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

Valores de atributos

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

❮ Etiqueta HTML <base>