HTML <button> Tag with the 'value' Attribute
<form id="myForm" action="http://www.htmlcodes.ws/resources/html-forms-action.cfm"> <label>Bank Balance: <input name="userBankBalance"></label> </form> <button name="userAction" form="myForm" value="Send"> Send Email </button>
In the above example we add the
value attribute to a button control.
value attribute allows you to specify an initial value to the control.
A button (and its value) is only included in the form submission if the button itself was used to initiate the form submission.
<button> element creates a button control in an HTML document.
Any contents of the
<button> element appears on the button.
onclick attribute) to make the button actually do something.