Home >Web Front-end >H5 Tutorial >Summary of Html5 form (2) input type various inputs, various user choices, upload
Unrestricted input
type Restricted input type = the following type
## type can also be followed by someattributes: For example, Limit the length of text to 10 bytes
##list Check again when it is available, list is used as a recommended value When not enough, add a few more.
type="text" name="usr" list="listfruit">
"listfruit"> ##
## #
There are several things to remember. Create a datalist with multiple options in it. The id of the datalist points to the input list. One-to-many usually refers to the id of the many side.
password Display non-clear text
placeholder Placeholder, the default is empty, you can also enter prompts to prompt input What, but it will disappear when you actually enter it.
##color date IE does not support it. In fact, it is very good. It allows users to input multiple types of colors and dates.
checkbox Multiple choice questions, check
##Submit and return one?music = 1 & sport =2 and subsequent procedures Connect to call the text or music of these idsradio Single choice question ##imageButton is the button for the picture...
email tel url These require the user to enter the correct category, but browser support is not very good. You may need to useregular expressionstandard
hidden to hide the input box, which must be written with name and value , return name = value#file Upload
The above is the detailed content of Summary of Html5 form (2) input type various inputs, various user choices, upload. For more information, please follow other related articles on the PHP Chinese website!