HTML-<base > -Zielattribut

❮ HTML <base>-Tag

Beispiel

Geben Sie ein Standardziel für alle Hyperlinks und Formulare auf einer Seite an:

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

Definition und Verwendung

Das targetAttribut gibt das Standardziel für alle Hyperlinks und Formulare auf der Seite an.

Dieses Attribut kann überschrieben werden, indem das targetAttribut für jeden Hyperlink/jedes Formular verwendet wird.


Browser-Unterstützung

Attribute
target Yes Yes Yes Yes Yes

Syntax

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

Attributwerte

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

❮ HTML <base>-Tag