Easy Tutorial
❮ Att Textarea Readonly Tag Noscript ❯

HTML <button> value Attribute

HTML <button> Tag

Example

Two buttons with the same name submit different values when clicked:


Browser Support

All major browsers support the value attribute.

Important: If you use the button element in an HTML form, different browsers will submit different values. Internet Explorer will submit the text between <button> and </button>, while other browsers will submit the content of the value attribute. Use the input element in HTML forms to create buttons.


Definition and Usage

The value attribute specifies the initial value for a <button> in a <form>.

Note: In a form, if the button is submitted as form data, only the value of the button will be submitted.


Differences Between HTML 4.01 and HTML5

NONE.


Syntax

Attribute Values

Value Description
value The initial value of the button.

❮ Att Textarea Readonly Tag Noscript ❯