<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 NameNotes
_selfOpens the form response in the current browser context. (This is the default behavior.)
_blankOpens the form response in a new browser tab or window.

All attributes of form Element

Attribute nameValuesNotes
target_self
_blank
Specifies the browser context in which the form’s response should be displayed.
actionSpecifies a URL to which the form’s data is sent when submitted.
enctype
methodGET
POST
Tells the browser how to send form data to a web server.
onSubmitRuns a script when the Submit button is clicked.
onResetRuns a script when the Reset button is clicked.
name
Adam is a technical writer who specializes in developer documentation and tutorials.

Browser Support for <form target="">

iefirefoxchromeedgesafariopera
AllAllAllAllAllAll