New properties and deleted properties in HTML5

Source: Internet
Author: User

One, new properties of the form

1. Specify the autofocus attribute on input (type= "text"), select, textarea, and button element, which allows the element to automatically get focus when the screen is opened by specifying a property.

2, input, textarea element specifies the placeholder property, it will prompt the user's input, prompting the user to enter the content.

3, input, output, select, TextArea, button, and fieldset specify the form property, declare which form it belongs to, and then place it anywhere on the page, not inside the form.

4, input, textarea element specifies the required attribute, indicating that the user submits the time to check, check that the element must have input content.

5. Input added several properties: AutoComplete, Min, max, multiple, pattern and step. At the same time, a friend uses a new list element with the DataList element. The DataList and AutoComplete properties work together. The Multiple property allows you to upload multiple files at once while uploading a file.

6. Input and button elements add FormAction, Formenctype, FormMethod, Formnovalidate, and Formtarget, and they can reload the action, enctype, The method, Novalidate, and Terget properties, which add a disabled attribute to the FIELDSET element, are used to set his child elements to be invalid.

7, for the input, button, form elements to increase the novalidate attribute, used to cancel the submission of the relevant checks, the form can be unconditionally submitted.

8. Define a Label property for all form elements that can use a label, the property value is a NodeList object, and represents the collection of label elements that the element is bound to.

New properties and deleted properties in HTML5

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.