HTML5 Self-study note [2] new form controls and form properties

Source: Internet
Author: User

  1. New <input> Properties Type= "Email", automatic verification, if the input is not a mailbox, you cannot submit.
  2. Added <input> Properties Type= "Tel", switch to the numeric keypad on the mobile side, no other changes.
  3. New <input> properties Type= "url", automatic verification, if the input is not a URL, it cannot be submitted.
  4. New <input> Properties Type= "Search", the input box displays the Delete text button, the other is not changed.
  5. New <input> Properties Type= "Range", the property step represents each change in scope, the property value represents the current value, the property Max and Min set the maximum minimum value.
  6. New <input> attribute type= "number", providing the plus and minus buttons to control the digital size.
  7. Added <input> attribute type= "Color", which provides a colour selection panel.
  8. New <input> attribute Type= "datetime", displays the full date, and displays UTC world Standard Time.
  9. New <input> Properties Type= "Datetime-local", displays the full date, not UTC.
  10. New <input> Properties Type= "Time", which provides a button to select seconds and minutes.
  11. Added <input> attribute type= "date" to provide a selection of the month-date panel.
  12. New <input> Properties Type= "Week", select the week of the year.
  13. New <input> attribute type= "Month", select the month of the year.
  14. New property MaxLength, sets the maximum number of input characters for the text box.
  15. New attribute placeholder, placeholder.
  16. New property AutoComplete, whether to save the user input value, on for open, off for off.
  17. New attribute autofocus, automatically gets focus.
  18. New attribute required, must be filled in.
  19. New attribute pattern, regular checksum.
  20. New attribute FormAction, set the submission address separately.
  21. New attribute Formnovalidate: Turn off validation, often used in conjunction with formaction, such as saving to a draft bin without verification.

HTML5 Self-study note [2] new form controls and form properties

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.