HTML5 Input type, html5input type

Source: Internet
Author: User

HTML5 Input type, html5input type

New input types provided by html5. these types can help us better control and verify input.

The following describes the new types:

Emial is used to verify the correct email format. It can be blank and automatically verified when the form is submitted.

The Url is used to verify the input domain containing the URL address input.

Number contains the input field of a value. The following attributes are used to limit the input value type.

Max number specifies the maximum value allowed

Min number: Minimum value allowed

A valid digit interval specified by step number indicates a multiple of the specified values. For example, if step is set to 2, the values 0, 2, and-2 are valid.

Default value specified by value number

Range indicates the input field of a certain range. The type of the field is the same as that of the number field.

<Input type = "range" min = "1" max = "10"/>

Date pickers data generator (official language), whether to search for controls for text input time, whether to use time verification controls for various JS plug-ins, if you remember the following controls, I want to solve it all.

Date: Select day, month, and year
Month-select month and year
Week-select week and year
Time-Select time (hours and minutes)

Datetime-select the time, day, month, and year (UTC time)
Datetime-local-Select time, day, month, and year (local time)

<Input type = "date" name = "user_date"/>

You only need to change the type of the text box, and you will do it all the time! Put time in your own hands

Well, there are so many text box types introduced today. If you have any good ideas and methods to comment on, let's take appropriate consideration, learn together, and make progress together! Tomato _ fried tomato

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.