1.button: Define a clickablebutton(usually used withJavaScriptto start a script).
2.checkbox: Define thecheckbox.
男
女
3.cancel: Cancel button, used to cancel the submission.
4.color: Define the color picker.
5.date: Define datecontrol(including year, month, day, excluding time) .
6.datetime: Define date and time controls (including year, month, day, hour, minute, second, fraction seconds, based on UTC time zone).
< for m action ="">生日 (日期和时间):
7.datetime-local: Define date and time controls (including year, month, day, hour, minute, second, fraction of a second, no with time zone).
8.month: Define month and year controls (without time zone).
9.week: Define week and year controls (without time zone).
10.time: Defines a control for entering time (without time zone).
11.email: Defines the field used for e-mail addresses.
E-mail:
12.file: Define the file selection field and "Browse..." button forfile upload.
13.hidden: Define hidden input fields.
14.image: Define the image as the submit button.
15.number: Defines a field for entering numbers.
16.password: Define the password field (characters in the field will be masked).
17.radio: Defineradio button.
男
女
18.range: Defines a control for input numbers where the exact value is not important (such as a slider control).
19.reset: Define the reset button (reset all form values to default values).
20.search: Define the text field used to enter thesearchstring.
21.submit: Define the submit button.
22.tel: Defines the field for entering a phone number.
Enter phone number:
23.text: Default. Defines a single-line text field (default width is 20 characters).
24.url: Defines the field for entering the URL.
Add your homepage URL:
The above is the detailed content of Detailed introduction to all types in HTML5 forms. For more information, please follow other related articles on the PHP Chinese website!