In HTML5, option means "selection, option". The option tag indicates the option to define a drop-down list. The data sent to the server can be defined through the value attribute of the tag. The syntax is "".
The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.
option means "selection, option"
The tag attributes are as follows:
disabled disabled specifies that this option should be disabled on first load.
label text Defines the label used when
selected selected specifies that the option appears selected (when first displayed in the list).
#value text Defines the option value sent to the server.
The example is as follows:
<select> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="opel" selected="selected">Opel</option> <option value="audi">Audi</option> </select>
Output result:
Recommended tutorial: "html video tutorial 》
The above is the detailed content of What does option in html5 mean?. For more information, please follow other related articles on the PHP Chinese website!