Links & Navigation

target="_self"

Navigates the current browsing context. In an iframe this means the frame itself, not necessarily the outer page; a base target can change the default when no explicit target is set. Used on links and forms, also via base and formtarget. Named browsing contexts are possible too. Navigation follows origin and sandbox rules.

Formal Syntax & Structure

html syntaxhtml
target="_self"

Parameters & Attributes

NameTypeDescription
targetkeywordNavigates the current browsing context. In an iframe this means the frame itself, not necessarily the outer page; a base target can change the default when no explicit target is set.

Working Example

Example Snippethtml
<a href="#destination" target="_self">Go to destination</a><p id="destination">Destination</p>
HTML Reference