<form target="">
Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
- Attribute of
- HTML Form Code For Beginners (And When To Use It)
- What does
<form target="">
do? - Specifies the browser context in which the form's response should be displayed.
Values of the target
Attribute
Value Name | Notes |
---|---|
_self | Opens the form response in the current browser context. (This is the default behavior.) |
_blank | Opens the form response in a new browser tab or window. |
All attributes of form
Element
Attribute name | Values | Notes |
---|---|---|
target | _self _blank | Specifies the browser context in which the form’s response should be displayed. |
action | Specifies a URL to which the form’s data is sent when submitted. | |
enctype | ||
method | GET POST | Tells the browser how to send form data to a web server. |
onSubmit | Runs a script when the Submit button is clicked. | |
onReset | Runs a script when the Reset button is clicked. | |
name |
Browser Support for <form target="">
All | All | All | All | All | All |