Attributes · <form target>
Which HTML Form target attributes matter?
These attributes decide how the <form target> behaves and what actually gets emailed to your inbox when someone submits.
| Attribute | What it does |
|---|---|
_self | The default. The response replaces the current page in the same tab. |
_blank | Opens the response in a new tab or window. The form page stays open in the old tab. |
_parent | Loads the response in the parent frame. With no parent it acts like _self. |
_top | Loads the response in the top-level tab, replacing every frame. Useful when the form sits inside an iframe. |
a named iframe | Any other name, like target="sf-result", loads the response in the <iframe name="sf-result">. If no such frame exists, the browser opens a new tab. |
formtarget | Set on a <button> or <input type="submit">. Overrides the form's target for that button only. |




