HTML formtarget Attribute Last Updated : 13 Dec, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report The HTML formTarget Attribute is used to specify the name or a keyword, that indicates where to display a result after submitting the form. It specify that the submitted result will be open in current window, a new tab or a new frame. This attribute overrides the feature of target attribute of <form> element. Uses: It is used in <button> and <input type="submit"> and <input type="image"> Syntax: <element formtarget="_blank|_self|_parent|_top|framename"> Attribute Values: _blank: It opens the link in a new window._self: It has a default value. It opens the linked document in the same frame._parent: It opens the linked document in the parent frameset._top: It opens the linked document in the full body of the window.framename: It opens the linked document in the named frame.Example: This example illustrates a form that contains two submit buttons, one will submit in a current frame and another button submit in a new frame. HTML <!DOCTYPE html> <html> <head> <title> HTML formtarget Attribute </title> </head> <body> <center> <h1 style="color:green;"> GeeksforGeeks </h1> <h2 style="color:green;"> HTML formtarget Attribute </h2> <form action="#"> Username: <input type="text" name="usrname"> <br><br> Password: <input type="password" name="password"> <br><br> <input type="submit" value="Submit in a new window" formtarget="_blank"> <button type="submit" formtarget="_self"> Submit with a current window </button> </form> </center> </body> </html> Output Supported Browsers: The list of browsers supported by HTML formtarget Attribute are given below - Google ChromeInternet ExplorerOperaFirefoxApple Safari Comment More infoAdvertise with us Next Article HTML data Attribute M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-Attributes Similar Reads HTML | <input> formtarget Attribute The HTML <input> formtarget attribute is used to specify the name or a keyword which indicates where to display the response after submitting the form. This attribute overrides the target attribute of <form> element. Syntax: <input formtarget="_blank|_self|_parent|_top|framename"> 1 min read HTML | <button> formtarget Attribute The HTML Button formtarget Attribute is used to specify whether the submitted result will open in the current window, a new tab or on a new frame. This Attribute overrides the feature of the <form>Target Attribute. It can only be used with the Button type="submit" Syntax: <button type="subm 2 min read HTML <form> rel Attribute The HTML <form> rel attribute is used to define the relationship between the current document and the linked document. The "rel" stands for relationship. It denotes that, we connect an external CSS with the HTML page. Syntax: <form rel="value"> Attribute values: external: It specifies th 2 min read HTML href Attribute HTML href Attribute: It is used to specify the URL of the document. It contains the full address of the page that the user requests. It is used to link or connect one document to another document.Supported tags:HTML <a> href AttributeHTML <base> href AttributeHTML <area> href Attri 3 min read HTML data Attribute The HTML data Attribute is used to specify the URL of the Embedded file of the Object. It can be used with the <object> element. Syntax: <object data="URL">Attribute Values: It contains a single value URL which is used to specify the source of the object.The possible values of URL are:ab 2 min read HTML | <form> name Attribute The HTML <form> name Attribute is used to specify the name of a form Element. It is used to reference the form-data after submitting the form or to reference the element in a JavaScript. Syntax: <form name="name"> Attribute Values: It contains a single value name which describes the name 1 min read Like