and <select> tags

前端 未结 8 1186
无人共我
无人共我 2020-12-21 11:25

Can I have a

within an HTML
8条回答
  •  春和景丽
    2020-12-21 11:39

    While you can generate any crazy HTML you want, that is not a recommended use of DIV. What is the problem you are trying to solve by introducing the DIV?

    Perhaps you are unaware of the OPTGROUP tag?

    The tag is used to group together related options in a select list.

    If you have a long list of options, groups of related options are easier to handle for the user.

提交回复
热议问题