Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use HTML5's new form elements

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the "HTML5 new form elements how to use" related knowledge, editor through the actual case to show you the operation process, the method of operation is simple and fast, practical, hope that this "HTML5 new form elements how to use" article can help you solve the problem.

TML5 has the following new form elements:

Note: not all browsers support HTML5's new form elements, but you can use them again, even if browsers don't support form attributes, they can still be displayed as regular form elements.

HTML5 element

Element specifies a list of options for the input field.

Property specifies that the form or input domain should have autocomplete functionality. When the user starts typing in the autocomplete field, the browser should display the filled-in options in that field:

Use the list attribute of the element to bind to the element.

Example

Element uses predefined values:

HTML5 element

The purpose of the element is to provide a reliable way to authenticate the user.

The label specifies the key pair generator field used for the form.

When the form is submitted, two keys are generated, one is the private key and the other is the public key.

The private key (privatekey) is stored on the client, and the public key (publickey) is sent to the server. The public key can be used to validate the user's client certificate (clientcertificate) later.

OperaSafariChromeFirefoxInternetExplorer

Example

Form with keygen field:

User name:

Encryption:

HTML5 element

Elements are used for different types of output, such as calculation or script output:

Example

Display the results of the calculation in the element:

0

100 +

=

That's all for "how to use HTML5's new form elements". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report