logo
logo
Sign in

HTML Form Attributes

avatar
Shivani Mude
HTML Form Attributes

Here is a list of commonly used form attributes :

  • 1. Action Attribute
  • 2. Target Attribute
  • 3. Method Attribute
  • 4. Autocomplete Attribute
  • 5. Novalidate Attribute

Action Attribute

The action attribute specifies the action to be performed when the form is submitted. When the user clicks the submit button, the form data is sent to a file on the server.

Target Attribute

The target attribute is used to specify where to display the response that is received after the form submission. The default value is _self. The following list shows the values of target attribute:

  • 1. _blank : Allows to display the response in the new tab.
  • 2. _self : Allows to display the response in the current window.
  • 3. _parent : Allows to display the response in the parent frame.
  • 4. _top : Allows to display the response in the full body of the window.
  • 5. ramename : Allows to display the response in the named iframe.

Example

<form action="/server_page.php" target="_blank">

Know more about other attributes in this html tutorial blog......

collect
0
avatar
Shivani Mude
guide
Zupyak is the world’s largest content marketing community, with over 400 000 members and 3 million articles. Explore and get your content discovered.
Read more