English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
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 ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the target attribute.
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.
HTML5Frames and framesets are no longer supported. Therefore, the _parent, _top, and framename values are now mainly used for iframes.
<base target="_blank|_self|_parent|_top|framename">
Value | Description |
---|---|
_blank | Open the linked document in a new window. |
_self | Default. Open the linked document in the same frame. |
_parent | Open the linked document in the parent frame set. |
_top | Open the linked document in the entire window. |
framename | Open the linked document in the specified frame. |