The
value
attribute specifies the value to be sent to a server when a form is submitted.
The content between the opening
<option>
and closing
</option>
tags is what the browsers will display in a drop-down list. However, the value of the
value
attribute is what will be sent to the server when a form is submitted.
Note:
If the
value
attribute is not specified, the content will be passed as a value instead.
<option value="
value"
>
Value | Description |
---|---|
value | The value to be sent to the server |
How to add HTML <option> Tag | HTML Tag |
How to Use of <option> in a <datalist> element: | HTML Tag |
How to Use of <option> in <optgroup> elements | HTML Tag |
What is HTML <option> disabled Attribute | HTML Tag |
How to add HTML <option> disabled Attribute | HTML Tag |
What is HTML <option> label Attribute | HTML Tag |
What is HTML <option> label Attribute | HTML Tag |
What is HTML <option> selected Attribute | HTML Tag |
How to add HTML <option> selected Attribute | HTML Tag |
What is HTML <option> value Attribute | HTML Tag |
How to add HTML <option> value Attribute | HTML Tag |
Category
: |
Web Tutorial |
Sub Category
: |
HTML Tag |
Uploaded by
: |
Admin |