📅  最后修改于: 2020-11-04 00:47:45             🧑  作者: Mango
HTML
如果要将数据发送到服务器,请使用
以下是有关HTML的一些规范
Display | Inline |
Start tag/End tag | Both Start and End tag |
Usage | Input |
HTML select Tag
Example of select tag
输出:
Attribute | Value | Description |
---|---|---|
autofocus | autofocus | This attribute let automatically focused the drop-down list on page load. |
disabled | disabled | It is used to disable the control and user cannot interact with the drop-down list. |
form | form-id | It specifies one or more forms, to which select belong to. |
multiple | multiple | If it sets then a user can select multiple options from the list. |
name | name | It determines the name for the drop-down list. |
required | required | If it specified, user must select that field before submitting the form. |
size | number | It specifies the visible number of options in the list. |
Element | Chrome | IE | Firefox | Opera | Safari |
Yes | Yes | Yes | Yes | Yes |