Home  >  Article  >  Web Front-end  >  Introduction to html5 forms, select drop-down, and textarea multi-line text

Introduction to html5 forms, select drop-down, and textarea multi-line text

零下一度
零下一度Original
2017-06-17 14:34:014713browse

##name In fact, if there is a name, then there is a value, because the button is submitted in the format of name=value. If you do not write the value, what is submitted will be the

string# of the option.

## is actually similar to the

list

of input, both require option and value can be omitted, but assignment is generally used for database storage and Call. The database is more efficient for numeric index

##size No need to pull down, it seems Taobao sellers select the same product category list...

optgroup This is not an attribute, it is just a node with multiple layers of options. There are many tags used to divide nodes in this way. For example, hgroup is used to organize titles, and

optgroup is used to organize data classification. Of course, this is only for performance, and the actual classification is still in the database.

三三Group

, this is the combined force of optgroup and label.

multiple Multiple selection After it is true, you can press ctrl to select multiple lines