LESSON02_03 Form Label _ Basic Tutorial

Source: Internet
Author: User

Used to create a form that defines the start and end positions of the form
Property name function
Action Sets the server-side URL address of the processing form. Default is form page
Method Used to set the way in which the information in the form is submitted to the service-side handler
The value is: Get or Post default value is: Get pass more than 1K time to use post
Target Used to specify the target window or target frame to which the server returns results display
Title Used to set the text that appears when a site visitor's mouse pauses for a few seconds at any location on the commendation
Enctype Indicates which encoding method the browser uses to pass the form data to the WWW server with the following values:
Application/x-www-form-urlencoded and Multipart/form-date, default to the former

Submit button:

Content to submit the form
When a name value is present, its name and value are also submitted to the server
The code is as follows:
The effect is as follows:

Reset button:

Used to place the contents of the form as the default value
The code is as follows:
The effect is as follows:

Single-line text input area:

It has a size property to specify the sizes of the input areas, in characters
The code is as follows:
The effect is as follows:
Size property:
The effect is as follows:
Under the MaxLength property:

Only 9 characters can be entered
The effect is as follows:
Value property:
The effect is as follows:
ReadOnly Properties:

Manual changes can not be used to change the script
The effect is as follows:
Disable properties:

When this element does not exist, it is not passed to the server
The effect is as follows:

check box button:


The effect is as follows:
Checked property
The effect is as follows:

Radio Box button:

Can only be selected by one

The effect is as follows:

Hidden fields:

Not displayed, used to submit hidden information

Password Input area:

Causes the input to be an * number, which is not visible
The code is as follows: < input type="password"> The effect is as follows:

Button:

Connect to Scripts
The code is as follows:
< input type= "button" value= "Submit" >
The effect is as follows:
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.