Html 5 Form Override Attribute Tag

The form override attributes used to override some of attributes for the form elements.The form override attributes are formenctype,formaction,formmethod,formtarget and can create more attribute button or submit button if use this attribute.


  <input type="submit" value="Submit button" />
  <input type="submit" value="Button" />

Example Code

<form method = "get" id = "user_form">
  User Name : <input type = "text" name = "user_name" id = "user_name" />
  <input type = "submit" value = "Submit" />
  <input type = "submit" formaction = "form-override.php" value = "Submit button for Same Page" />

Out Put :

User Name :

In the above form have in two submit button that values are Submit,Submit Button For Same Page and one text box that name is User name. First submit button is used to submit for form attribute and second submit button is used to formaction to same page.