HTML教程认识optgroup元素
下面,图老师小编带您去了解一下HTML教程认识optgroup元素,生活就是不断的发现新事物,get新技能~
!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
htmlxmlns="http://www.w3.org/1999/xhtml"
head
titleruncode/title
metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/
metaname="Author"content="Sheneyan"/
/head
body
select
optgrouplabel="a"
optiona1/option
optiona2/option
optiona3/option
/optgroup
optgrouplabel="b"
optionb1/option
optionb2/option
optionb3/option
/optgroup
/select
/body
/html