English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <base> target Attribut

Das Zielattribut legt die Standardzieladresse für alle Hyperlinks und Formulare auf der Seite fest. Dies kann durch die Verwendung jedes Hyperlinks/The form's target attribute can override this attribute.

 HTML <base> Tag

Online-Beispiel

Legen Sie eine Standardzieladresse für alle Hyperlinks und Formulare auf der Seite fest:

<!DOCTYPE html>
<html>
<head>
<title>HTML:<base> target Attribut - Grundlegendes Tutorial oldtoolbag.com</title>
<base target="_blank">
</head>
<body>
<p><a href="https://de.oldtoolbag.com">Grundlegendes Tutorial</a> - 
Bitte beachten Sie, dass dieser Link auch in einem neuen Fenster geöffnet wird, selbst wenn das Attribut target="_blank" nicht vorhanden ist. Dies liegt daran, dass das Zielattribut des grundlegenden Elements auf "_blank" gesetzt ist.</p>
</body>
</body>
</html>
Test to see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the target attribute.

Definition and Usage

Specify a default target for all hyperlinks and forms on the page using the target attribute.
By using each hyperlink/The form's target attribute can override this attribute.

HTML 4.01 with HTML5differences

HTML5Frames and framesets are no longer supported. Therefore, the _parent, _top, and framename values are now mainly used for iframes.

Syntax

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

Attribute Value

>
ValueDescription
_blankOpen the linked document in a new window.
_selfDefault. Open the linked document in the same frame.
_parentOpen the linked document in the parent frame set.
_topOpen the linked document in the entire window.
framenameOpen the linked document in the specified frame.
 HTML <base> Tag