English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The target attribute of the <a> tag specifies where the linked document should be opened
The target attribute specifies where the document linked to should be opened:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Basic Tutorial Website(oldtoolbag.com)</title> </head> <body> <a href="https://www.oldtoolbag.com" target="_blank">Open a new window, visit the basic tutorial website!</a> </body> </html>Test See ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the target attribute
The target attribute of the <a> tag specifies where to open the linked document.
<a 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. |