HTML <base> target atribut

❮ HTML tag <base>

Příklad

Zadejte výchozí cíl pro všechny hypertextové odkazy a formuláře na stránce:

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

Definice a použití

Atribut targeturčuje výchozí cíl pro všechny hypertextové odkazy a formuláře na stránce.

Tento atribut lze přepsat pomocí targetatributu pro každý hypertextový odkaz/formulář.


Podpora prohlížeče

Attribute
target Yes Yes Yes Yes Yes

Syntax

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

Hodnoty atributů

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 tag <base>