HTML5 has new element specific-attributes |
Attributes |
Values |
Description |
autofocus |
autofocus |
This attribute automatically gives focus to button when the page loads. Possible values are: [Empty string] or autofocus. |
form |
form_name |
This attribute specifies form Id to which this button belongs to. |
formaction |
URL |
This attribute specifies a URL to target when the button is clicked. Note: Used with type="submit" |
formenctype |
1. application/x-www-form-urlencoded 2. multipart/form-data 3. text/plain |
This attribute encoded data before sending it to a server Default value: application/x-www-form-urlencoded Note: Used with type="submit" |
formmethod |
get post put delete |
This attribute specifies HTTP method to use when information should be transferred to the server. Note: Used with type="submit" |
formnovalidate |
formnovalidate |
This Boolean attribute is used to specifies that a form should not be validated during submission. Overrides the form's novalidate attribute. Note: Used with type="submit" |
formtarget |
_blank _self _parent _top framename |
This attribute use to set the name of a window or frame where to open the action URL. Overrides the forms target attribute. Note: Used with type="submit" |
name |
button_name |
This attribute define a name for the button. |
type |
button reset submit |
This attribute specifies type for the button. |
value |
text |
This attribute defines the value that is sent to the server when the button is clicked. |