Easy Tutorial
❮ Tag Li Tag Option ❯

HTML <option> value Attribute

HTML <option> Tag

Example

A dropdown list in an HTML form:


Browser Support

All major browsers support the value attribute.


Definition and Usage

The value attribute specifies the value to be sent to the server when the form is submitted.

The content between the start tag <option> and the end tag </option> is what the browser displays in the dropdown list, while the value in the value attribute is the value sent to the server when the form is submitted.

Note: If the value attribute is not specified, the value of the option will be set to the content of the <option> tag.


Differences Between HTML 4.01 and HTML5

None.


Syntax

Attribute Values

Value Description
value The value to be sent to the server.

❮ Tag Li Tag Option ❯