Option content"."/> Option content".">

Home >Web Front-end >Front-end Q&A >What does option in html5 mean?

What does option in html5 mean?

WBOY
WBOYOriginal
2022-06-01 16:31:205398browse

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 "".

What does option in html5 mean?

The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.

What does option mean in html5

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 is used.

  • 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:

What does option in html5 mean?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Is output an HTML5 tag?Next article:Is output an HTML5 tag?