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 the html input field label

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

Share

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

This article mainly introduces how to use the html input field tag, the article introduces in great detail, has a certain reference value, interested friends must read it!

Enter domain label: input

The tag is used to obtain user input information, and the type attribute value is different and the collection method is different. The most commonly used label.

Rype attribute

Text: text box, a single-line input field in which the user can enter text. The default width is 20 characters

Password: password box, password field. The characters in this field are displayed in black circles.

Radio: a checkbox that represents one of a set of mutually exclusive option buttons. When a button is selected, the previously selected button becomes unchecked.

Submit: submit button. The submit button sends the form data to the server. Generally, the name attribute is not written, otherwise the word "submit" will be submitted to the server.

Because different projects need different fields, so I did not write all the form elements, the following tags also need to be mastered.

Checkbox: check box

Filee: file upload component, provides "browse", press to select the file to be uploaded.

Hidden: hides the field, the data is sent to the server, but the browser does not display it.

Reset: reset button. Restore the form to its default value.

Image: the image submission button, which sets the picture to the button through src.

Button: a normal button, often used in conjunction with JavaScript.

Name: element name. If you need the form data to be submitted to the server, you must provide the name attribute value, and the server obtains the submitted data through the attribute value.

Value: sets the default value for the input tag. Submit and reset buttons to submit data

Size: siz

Checked property: check box or check box is selected.

Readonly: read-only

Disabled: available or not

Maxlength: maximum length allowed for input

The above is all the contents of this article entitled "how to use html input Field tags". Thank you for reading! Hope to share the content to help you, more related 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