HTML Learning Form

Source: Internet
Author: User

HTML form

A form is an important part of HTML that is primarily used to collect and submit information entered by the user.

<form name= "F1" action= "processing table single URL" method= "Get or post" >

</form>

1. Name: Sets the names of the forms.

2. Action: Sets the URL of the handler for the form.

3, Method: The way to submit the form.


tags commonly used in HTML forms:

Input fields <input> general use in forms

1. <inputtype= "Text"/> Enter a single line of text

2, <inputtype= "password"/> Enter the password

3. <inputtype= "Radio"/> radio button

4. <inputtype= "checkbox"/> Multi-select button

5. <inputtype= "image"/> Pictures

6, <inputtype= "file"/> files upload

7, <inputtype= "hidden"/> Hidden fields

8. <inputtype= "Reset"/> Undo button

9, <inputtype= "Submit"/> Submit button

10, <inputtype= "button"/> Normal button


11, multi-line text input marker <textarea>

<textarea name= "T1", Rows=x,cols=x>

</textarea>

Name to set the distinguished names.

Rows sets the number of lines in a text field

Cols Setting the number of columns in a text field

Disabled set Text to Disabled

Warp set to off no line break



12. Select Domain <select>

<select name=selectname>

<option selected> Option One </option>

< option > Options two </option>

......

</select>


<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

HTML form submission data: The HTML submission data must be set <input> label name and Value property so that the ASP program can get the corresponding value.

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">




HTML Learning Form

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.