HTML5 learning (13) Form Properties

<Form> new attributes:

  • autocomplete
  • Prescribed form or input field should have autocomplete. Examples of address
  • novalidate
  • Provision should not validate form input fields or when submitting the form. Boolean value. Examples of address

<Input> new attributes:

  • autocomplete
  • autofocus specified when the page loads, the domain automatically gets the focus. Boolean value. Examples of address
  • form one or more form specified input field belongs. Examples of address
  • formaction described URL address form submission. overrides the action attribute <form> elements. Examples of address
  • formenctype describes the encoded data of the form is submitted to the server. Examples of address
  • formmethod defines the way form submission. It covers the method attribute <form> element. Examples of address
  • formnovalidate described <input> element does not need to be verified when the form is submitted. Overwrites novalidate. Examples of address
  • formtarget form submission indicating display after data reception. Covering the target attribute <form> element. Examples of address
  • predetermined height and width for the <input> type image height and image width of the label. Examples of address
  • list prescribed datalist input field. datalist input field is a list of options. Examples of address
  • Limited min and max (constraint) of input types containing numbers or dates. Examples of address
  • multiple predetermined <input> element in a plurality of selectable values. Applicable: email and file. Examples of address
  • pattern (regexp) describes a regular expression to verify a value <input> element. Examples of address
  • provided a placeholder tips (hint), displayed on the input field. Examples of address
  • required provisions must be filled in the input field (can not be empty) before submitting. Examples of address
  • step input field specifies the legal number intervals. If step = "3", legal numbers could be -3,0,3,6, and so on. Examples of address

 

Guess you like

Origin www.cnblogs.com/1016391912pm/p/12602754.html