Home > Web Front-end > H5 Tutorial > Summary of Html5 form (2) input type various inputs, various user choices, upload

Summary of Html5 form (2) input type various inputs, various user choices, upload

零下一度
Release: 2017-06-17 14:35:51
Original
2421 people have browsed it

Unrestricted input

type Restricted input type = the following type

## type can also be followed by some

attributes: 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">

id="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 ids

radio Single choice question

##image                  

Button 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 use

regular expressionstandard

hidden to hide the input box, which must be written with name and value , return name = value

#file Upload

Control

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template