英[sɪˈlekt] 美[sɪˈlɛkt]

vt.Select; select; select

adj. Selected; selected; harshly selected; <口> like to pick three Picky, picky

Third person singular: selects Present participle: selecting Past tense: selected Past participle: selected

html select tag syntax

Function:Create a single-select or multi-select menu.

Description: The <option> tag in the <select> element is used to define the available options in the list.

Note: The select element is a form control that can be used to accept user input in a form.

html select tag example

<!DOCTYPE html>
<html>
<body>

<select>
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="opel">Opel</option>
  <option value="audi">Audi</option>
</select>
  
</body>
</html>

Run Instance»

Click the "Run Instance" button to view the online instance

<!DOCTYPE html>
<html>
<body>
<p>你最喜欢的讲师是哪一位</p>
<select>
  <option value="西门大官人">西门大官人</option>
  <option value="灭绝师太">灭绝师太</option>
  <option value="欧阳克">欧阳克</option>
  <option value="韦小宝">韦小宝</option>
</select>
  <p>select标签是一个下拉列表,常用于表单中</p>
</body>
</html>

Run instance»

Click the "Run instance" button to view the online instance