HTML <baza> atrybut docelowy

❮ Znacznik HTML <base>

Przykład

Określ domyślny cel dla wszystkich hiperłączy i formularzy na stronie:

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

Definicja i użycie

Atrybut określa domyślny cel dla wszystkich hiperłączy i formularzy na targetstronie.

Ten atrybut można zastąpić, używając targetatrybutu dla każdego hiperłącza/formularza.


Obsługa przeglądarki

Attribute
target Yes Yes Yes Yes Yes

Składnia

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

Wartości atrybutów

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

❮ Znacznik HTML <base>