Form property in H5

Source: Internet
Author: User

< form ID= "Testform" >          <input   type= "text"    placeholder= "Please enter the appropriate information"/> </ form >

<input form= "Testform"/>   

 In the above 4 lines of code, the last input does not belong to the form form element, and when the form is submitted, input is not submitted as a single table, but in HTML5we only need to add the form property to the input property and make the form's ID, and the external input is the scope of the form's submission. Summary: From the above example, it can be seen that the H5 form of the respective control elements, no longer dependent on the position of the form element, can be separated from the form, but also maintain a subordinate relationship.



From for notes (Wiz)



Form property in H5

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.