Web Design
Mobile Internet
Brand Design
Innovative
News
Encyclopedias

Web Page Input Form Object

Date:2015-07-25 Source: Shangpin China Type: website encyclopedia
Word Size: small   medium   big

<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.


Please contact our consultant

+86 10-60259772

Please provide your contact number. The project manager of shangpin China will contact you as soon as possible.