HTML <base>ターゲット属性

❮HTML<base>タグ

ページ上のすべてのハイパーリンクとフォームのデフォルトのターゲットを指定します。

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

定義と使用法

このtarget属性は、ページ内のすべてのハイパーリンクとフォームのデフォルトのターゲットを指定します。

targetこの属性は、各ハイパーリンク/フォームの属性を使用してオーバーライドできます。


ブラウザのサポート

Attribute
target Yes Yes Yes Yes Yes

構文

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

属性値

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>タグ