Definition and Usage The value attribute specifies the initial value of the button. The button value can be changed by a script. Important...
Definition and Usage
The value attribute specifies the initial value of the button.The button value can be changed by a script.
Important: Be careful when using the button element in a form. In a form the different browsers will submit different values. Internet Explorer will submit the text between the <button> and </button> tags, while other browsers will send the content of the value attribute. When in a form, use the input element instead.
Syntax
<button value="value"> |
Syntax Example
<button value="option1"> |
Attribute Values
Value | Description |
---|---|
value | Specifies value of the button. |