📜  HTML option标签

📅  最后修改于: 2020-11-04 00:53:05             🧑  作者: Mango

HTML

选定的是

当任何选项使用此属性时,则在加载网页时应预先选择并显示该选项。

句法

示例:以下示例在




 
Example of selected attribute



Select Your favourite Car from the following given options:


输出:

范例2:以下范例在




 
Second Example of selected attribute



Select Your favourite fruit from the following list of fruits:


输出:

浏览器支持

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes