MENU service case
 Website construction website design Beijing website construction high-end website production company Shangpin China
We create by embracing change
360 ° brand value__
simplified Chinese character
Simplified Chinese English

Shangpin China Joins Hands with Beisheng Internet to Create a New Chapter in Website Construction

Type: Shangpin Dynamic Learn more

Web Page Input Form Object

Source: Shangpin China | Type: website encyclopedia | Time: July 25, 2014
<INPUT>is a one-way tag, which is input by the viewer Web page production The tag used for information, which is used to create various input form controls.
<INPUT>has six common attributes: type, name, size, value, maxlength, and checked. Set the type attribute to different values to create different types of input form controls, including single line text box (text), password field (password), button (submit, reset, button, image), radio button (radio), checkbox file field (file), and hidden field (hidden). Other attributes have different meanings depending on the type.
 
1. Load single line text box
To get a small amount of information provided by site visitors, you can add a single line text box to the form. Its type attribute is specified as text. The following is the meaning of other attributes of the text box.
    · Name: Specifies the name of the text box.
    · Value: specifies the initial value of the text box. If not specified, the initial bit is empty, and is generally entered by the user.
    · Size: specifies the width of the text box. The default value is 20, in bytes.
    · Maxlength: Specifies the maximum number of characters allowed to be entered in the text box.
For example:
      <INPUT type="text" name="t1" value="user" size="16" maxlength="20">
 
When the form is submitted, the name value pair of the text box will be included in the form result and submitted to the corresponding handler. For any form control, its "name. value" pair is the most important submission information.
 
2. Insert password field
If the user wants to enter a password or the content he does not want to display, he can add a password field to the form. The password field is also a single line text box. The difference from the text box is that the information entered by the viewer is displayed with an asterisk "*". The type attribute of the password field is specified as password. The other attributes of the password field are exactly the same as text, that is, they have name, value, size, and maxlength attributes, for example:
    <INPUT type="password" name=“p1”size="16" maxlength="20">

three
Insert Button
Use the<INPUT>tag to add three common buttons to the form: submit button, reset button, and normal button
(1) Type: specifies the type of the button, which has the following values
·Submit: Create a submit button, which is used to submit the form content to the server.
·Reset: Create a reset button, which is used to clear all the form contents for filling in again.
·Button: create a common button, which is usually combined with the OnClick event to execute the written script program
(2) Name: name of the button.
(3) value : The standard text displayed on the button.
Source Statement: This article is original or edited by Shangpin China's editors. If it needs to be reproduced, please indicate that it is from Shangpin China. The above contents (including pictures and words) are from the Internet. If there is any infringement, please contact us in time (010-60259772).
TAG label:

What if your website can increase the number of conversions and improve customer satisfaction?

Make an appointment with a professional consultant to communicate!

* Shangpin professional consultant will contact you as soon as possible

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]

Communicate with professional consultants now!

  • National Service Hotline

    400-700-4979

  • Beijing Service Hotline

    010-60259772

Please be assured to fill in the information protection
Online consultation

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]