HTML button type Attribute
Definition and Usage
The type attribute specifies the type of the button.The default value of this attribute is different in some browsers.
Syntax
<button type="type"> |
Syntax Example
<button type="submit"> |
Attribute Values
Value | Description |
---|---|
submit | Specifies that the button is a submit (sends form data) button. This is default for W3C and in most browsers |
button | Specifies that the button is simple clickable button. This is default for Internet Explorer |
reset | Specifies that the button is a reset button (clears form data) |
Browser Support
The attribute is supported in all major browsers.Note: The default button type in IE is "button", in the other major browsers (and according to the W3C) it is "submit".
HTML button type Attribute
Reviewed by 1000sourcecodes
on
06:13
Rating: