Easy Tutorial
❮ Att Video Controls Att Th Align ❯

HTML <input> value Attribute

HTML <input> Tag

Example

An HTML form with an initial (default) value:


Browser Support

All major browsers support the value attribute.


Definition and Usage

The value attribute specifies the value of an <input> element.

The value attribute has different meanings for different input types:

Note: The value attribute is required for <input type="checkbox"> and <input type="radio">.

Note: The value attribute is not applicable for <input type="file">.


Differences Between HTML 4.01 and HTML5

None.


Syntax

Attribute Values

Value Description
text Specifies the value of the <input> element.

❮ Att Video Controls Att Th Align ❯