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

What are the form elements of HTML5

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly shows you "what are the form elements of HTML5", the content is simple and clear, hoping to help you solve your doubts, the following let the editor lead you to study and learn "what are the form elements of HTML5" this article.

New form elements for HTML5:

HTML5 has several elements and attributes that involve forms.

This chapter introduces the following new form elements:

Datalist

Keygen

Output

Browser support

Input type IE Firefox Opera Chrome Safari

Datalist No No 9.5 No No

Keygen No No 10.5 3.0 No

Output No No 9.5 No No

Datalist element

The datalist element specifies the list of options for the input field.

The list is created through the option element within the datalist.

To bind datalist to the input field, use the list attribute of the input field to reference the id of datalist:

Example

Webpage:

Tip: the option element always sets the value attribute.

Keygen element

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

Keygen element is the key pair generator (key-pair generator). When the form is submitted, two keys are generated, one is the private key and the other is the public key.

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

Currently, browsers' poor support for this element does not make it a useful security standard.

Example

Username:

Encryption:

Output element

The output element is used for different types of output, such as calculation or script output:

Example

The above is all the content of the article "what are the form elements of HTML5". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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