value
What does each control submit?
Text fields send what is in the box when the form is submitted, so value is only the starting text. Checkboxes, radios, options and named buttons send their value string exactly as written.
| Control | What value does | What is submitted |
|---|---|---|
<input type="text">, email, tel | Sets the starting text | Whatever is in the box at submit |
<textarea> | Has no value attribute. The text between the tags is the starting text | The current text |
<input type="checkbox"> | The string sent when it is checked | name=value, or name=on with no value. Nothing when unchecked |
<input type="radio"> | The string sent when it is checked | name=value for the checked radio only |
<option> | Sent instead of the visible label | The value, or the visible text if value is missing |
<button type="submit" name="…"> | Identifies which button was used | name=value, only for the clicked button |
<input type="file"> | Ignored, for security | The chosen file |
Sources: WHATWG HTML Standard: constructing the entry list · MDN: <input> value




