HTML Web Form creation

Source: Internet
Author: User

1. Form label

""

Syntax:

"

Name: Define the names of the forms

Method: Defines how the form results are routed from the browser to the server, with the default parameters: get; Action: The location used to specify the form handler (server-side script handlers such as ASP)

2. text Box text box

is a form object that allows visitors to enter their own content, often used to fill in single words or short answers, such as names, addresses, and so on.

Code format:

Type= "Text" defines a single line text input box;

The name attribute defines the names of the text boxes, and to ensure accurate data acquisition, a unique name must be defined;

The Size property defines the width of the text box, in units of a single character width;

The MaxLength property defines the maximum number of characters entered.

The Value property defines the initial value of the text box

3. Password box

A password box is a special text box, which differs in that it is expressed in * when the content is entered, to ensure the security of the password.

Format: <input type= "password" name= "..." size= "..." maxlength= "..." >

4. Button

Type: Normal button, submit button, reset button.

1) Normal button

When type is a button, the input entry is a normal button. Syntax format: <input type= "button" value= "" "Name=" "" >

Value: Represents the text displayed above the button. Normal buttons are often used in conjunction with scripts.

2) Submit button

By submitting (input type=submit), you can submit the information in the form (form) to the file that the action points to in the form. Example: <input type= "Submit" value= "Submission" >

3) Reset button

When type is reset, the input entry is a reset button, and when the button is clicked, the browser can clear the input information from the form and revert to the default form content setting.

Syntax format: <input type= "reset" value= "" "Name=" "" >

5. Radio Box and check box

? Radio Box

Format: <input type= "Radio" Name= "" "Value=" "" checked> checked: Indicates that this item is selected by default

Value indicates that values are routed to the server side when selected.

Name indicates the names of the radio boxes, and if it is a single set of options, the value of the Name property has the same mutex effect.

? check box

Syntax format: <input type=checkbox name= "" "Value=" "" Checked >

HTML Web Form creation

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.