HTML Knowledge-Forms

Source: Internet
Author: User

1. Form tags:<form> content </form>

Properties: Name (form name)

Method (transfer Data mode):

get--appends the contents of the form to the URL address, so the length of the submitted content is limited, not exceeding 8,192 characters, and is not confidential

post--the data in the form into the body of the form, which is transferred to the server for processing, with no data size limit

Action: The URL address of the handler for the form data and, if blank, the URL address of the current document,

If you do not need to use the Action property in the form, you also specify that its property is "no"

Enctype: Setting the encoding of form data

Target: Similar to hyperlinks, used to specify the target window

2. Text field and password:<input> Mark single Mark

Properties: Type:text (Text input box), Password (password input field)

Name: Names

Value: Initialize value

Maxlenght: The maximum number of characters allowed to enter

3. Submit, Reset, Normal button

Submit <input Type= "Submit" >

Reset <input type= "reset" >

Normal <input type= "button" >

4. Radio Box and check box

Radio <input type= "Radio" >

Check <input type= "checkbox" >

5. Hidden fields

<input type= "hidden" >

6. Multiline Text fields <textarea>

The rows and Cols properties are used to specify the number of rows and columns to display

7. Menu drop-down list field <select>

Format:

<Select>  <optionvalue= "Volvo">Volvo</option>  <optionvalue= "Saab">Saab</option>  <optionvalue= "Opel">Opel</option>  <optionvalue= "Audi">Audi</option></Select>

<option> Tag: Value (assign value to option)

Selected (default option)

    

HTML Knowledge-Forms

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.