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 HTML form elements

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces the relevant knowledge of how to use HTML form elements, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this article on how to use HTML form elements. Let's take a look at it.

This is a top priority in Html because it is used a lot, and basically all the form elements are contained in the Form tag. The space in each form either exists independently or is in the Input, so let's take a closer look at it:

# Field group form data field group name form control tag for must point to id text input box: password input box: radio box: check box: button: button1 drop-down list: 1234 text field: row 10 characters column 20 characters One Chinese character is equal to two characters hello world menu: list menu and context menu (context) toolbar menu (toolbar) New Open and exit multiple selection menu items also have single selection (radio) and command (command) submit: Html5 form type predefined options list form key pair generator field when the form is submitted, the private key is stored locally and the public key is sent to the server. Input box only allows numeric input date color range month and year week and year time date time selection (with time zone) date time selection (no time zone) mailbox search phone urlaction: server scripting language for processing form data (such as php) method: request method such as get postaccept-charset: character encoding when submitting the form such as utf-8target: page jump autocomplete: automatically complete the form off Close on to enable enctype: encode form data such as application/x-www-form-urlencoded (default) Multipart/form-data (file upload), text/plainnovalidate: the browser does not validate the form formtarget overrides the target attribute and is used for type= "submit" and type= "image". Formnovalidate overrides the novalidate attribute, for type= "submit" formmethod override method attribute, for type= "submit" and type= "image" formenctype override enctype attribute, for type= "submit" and type= "image" Only for method= "post" form formaction when submitting the form, the URLform of the input control's file specifies that one or more form autofocus to which the input element belongs automatically gets the focus when the page loads. The disabled input field should be disabled the maximum number of characters of the max input field, the maximum number of characters of the min input field, the minimum value of the min input field. The regular expression readonly input field through which the input value is checked is the width of the read-only required input field the width of the size input field the legal numeric interval of the step input field the default value of the value input field multiple is commonly used in mailboxes and files Multiple uploaded files can be placeholder to prompt the user how to enter correctly

This is the end of the article on "how to use HTML form elements". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to use HTML form elements". If you want to learn more, you are 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