HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
HTML <option> tag : A drop-down list inside an HTML form
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.
value
attribute is not specified, the content will be passed as a value instead.
Attribute | |||||
---|---|---|---|---|---|
value | Yes | Yes | Yes | Yes | Yes |
Value | Description |
---|---|
value | The value to be sent to the server |
❮ HTML <option> tag