HTML Attributes

HTML target attribute

Build a form with the HTML form generator

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

NameTypeDescription
targetbrowsing context name or reserved keywordSelects 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>
HTML Reference