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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <a> Zielattribut

Die Zielattribut des <a>-Tags legt fest, wo das Dokument geöffnet wird, das durch den Link geöffnet wird

HTML <a> Tag

Online-Beispiel

Die Zielattribut legt fest, wo das Dokument geöffnet wird, das durch den Link geöffnet wird:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>Basic Tutorial Website(oldtoolbag.com)</title> 
</head>
<body>
<a href="https://de.oldtoolbag.com" target="_blank">Open a new window, visit the basic tutorial website! </a>
</body>
</html>
Test see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the target attribute

Definition and Usage

The target attribute of the <a> tag specifies where to open the linked document.

Syntax

<a 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 <a> Tag