and <select> tags

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

Can I have a

within an HTML
8条回答
  •  爱一瞬间的悲伤
    2020-12-21 11:31

    From the specification:

    
    

    i.e. There is an element called "SELECT", the start tag is required, the end tag is required. It's children can be OPTGROUP elements and/or OPTION elements and there must be at least one of them.

    Since a DIV is not an OPTGROUP or an OPTION, the answer is no.

提交回复
热议问题