Type of input box in HTML5 mobile development, html5input

Source: Internet
Author: User

Type of input box in HTML5 mobile development, html5input
HTML5 specifications introduce many new input box types

In HTML5 mobile development, these new input box types are used to display custom keyboard la S, which provide a better user experience and easier form filling.

In this article, the measured mobile phone number is kidney 4S and meter 4

 

Number

When the input type is set to type = "number", iOS displays numbers, punctuation marks, and symbol keyboards, and Android displays dial-up keyboards. The Code is as follows:

<input type="number" id="number" name="number" />

Figure: iOS on the left, Android on the right

 

Tel

When the input type is defined as type = "tel", both iOS and Android display the dial-up keyboard. The Code is as follows:

<input type="tel" id="tel" name="tel" />

Figure: iOS on the left, Android on the right

 

Email type email

When the input type is set to type = "email", both iOS and Android display letters and email symbol keyboards. The Code is as follows:

<input type="email" id="email" name="email" />

Figure: iOS on the left, Android on the right

 

Link Type url

When the input type is defined as type = "url", both iOS and Android display the letter and link symbol keyboard. The Code is as follows:

<input type="url" id="url" name="url" />

Figure: iOS on the left, Android on the right

 

Date

When the input type is defined as type = "date", both iOS and Android display the date Picker. The style varies greatly. The Code is as follows:

<input type="date" id="date" name="date" />

Figure: iOS on the left, Android on the right

 

Time

When the input type is defined as type = "time", both iOS and Android display the time picker. The style varies greatly. The Code is as follows:

<input type="time" id="time" name="time" />

Figure: iOS on the left, Android on the right

 

Datetime

When the input type is defined as type = "datetime", iOS call fails, and Android displays the date and time picker in sequence. The Code is as follows:

<input type="datetime" id="datetime" name="datetime" />

Figure: iOS on the left, Android on the right

 

Month

When the input type is set to type = "month", iOS displays the month picker. Android displays the Date Picker but only records the year and month. The Code is as follows:

<input type="month" id="month" name="month" />

Figure: iOS on the left, Android on the right

 

The iOS keyboard layout is basically the same, and the keyboard layout of different Android mobile phones is quite different.

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.