HTML5 new form elements
HTML5 new form elements
Let’s talk about the new ones:
HTML5 has the following new form elements:
< datalist>
Note: Not all browsers support the new HTML5 form elements, but you can use them, Even if the browser does not support form attributes, it can still be displayed as a regular form element.
Next we will introduce one by one:
HTML5
Use the list attribute of the element to bind to the
注意: Internet Explorer 9(更早IE版本),Safari不支持 datalist 标签。
HTML5
The purpose of the
When the form is submitted, two keys will be generated, one is the private key and the other is the public key.
The private key is stored on the client, and the public key is sent to the server. The public key can be used later to verify the user's client certificate.
注意: Internet Explorer 不支持 keygen 标签。
Properties Disabled causes the keygen field to gain focus when the page loads.
Challenge Challenge If it is used, set the value of the keygen to ask at the time of submission.
Disabled Disabled disable the KEYTAG field.
Form Formname Define one or more forms of the keygen field.
keytype rsa generates RSA keys.
## Name Fieldname Define the only name of the keygen element. The name attribute is used to collect the value of the field when submitting the form.HTML5