HTML Attributes
HTML target attribute
Selects where a link or form opens. _self uses the current context; _blank requests a new context. Use appropriate opener isolation when opening external pages. Applicable elements include: <a>, <area>, <base>, <form>. Check each element’s value rules. Example uses illustrative URLs or local assets; provide the corresponding files or application endpoints when running it.
Formal Syntax & Structure
html syntaxhtml
target="_blank"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| target | browsing context name or reserved keyword | Selects where a link or form opens. _self uses the current context; _blank requests a new context. Use appropriate opener isolation when opening external pages. |
Working Example
Example Snippethtml
<a href="https://example.com" target="_blank" rel="noopener">Open site (new tab)</a>