HTML5 's Form

Source: Internet
Author: User

Email: Indicates that you want to enter an e-mail address

This is the new element of HTML5

It validates the input, and it needs to write a large section of the JS code to do the work.

The browser version may not be supported, and the effect of different browser hints may vary.

Required property: Set this content as mandatory option, otherwise you cannot commit

URL: Indicates that you want to enter a URL

This is the new element of HTML5

It will verify the input content, before the need to fill in a large section of the JS code to do this work

Browser version is low may not support, different browser prompts may vary

Tel: Indicates that the input is a phone number

This is the new element of HTML5

 It does not validate the input, but it automatically switches to digital input when it is on the phone.

Low browser version may not be supported, different browser hints may vary in effect

Number

This is the new HTML5.

You can match the max/min/step/value of input to allow the maximum, minimum, step, and default values to be entered

Browser version is less likely to be unsupported, different browser prompts may have different effects

Range (active bar)

This is HTML5 NEW: Similar to the number type, also represents a range of numeric inputs, but is displayed as a status of an active bar

You can match the max/min/step/value of input to allow the maximum, minimum, step, and default values to be entered

Browser version is less likely to be unsupported, different browser prompts may have different effects

Time class:

This is the new HTML5.

Includes datetime, datetime-local, date, month, week, time

Browser version is less likely to be unsupported, different browser prompts may have different effects

Color

This is the new HTML5.

You can create a color selection input box

Browser version is less likely to be unsupported, different browser prompts may have different effects

  

HTML5 's Form

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.