05.html Learning-Forms

Source: Internet
Author: User

Form Labels: the role of form labels is used to submit data to the server.
The root tag of the form label is the <form> tag

Common Properties:
Action: This property is the address used to specify the submission data.
Method: Specifies how the form is submitted.
Get: The default use of the submission method. The submitted data is displayed on the address bar.
Post: The submitted data is not displayed on the address bar.

<form action= "http://www.baidu.com" method= "POST" >
<!--text input box line-and-
User name: <input name= "UserName" type= "text"/><br/>
<!--Password Box--
Password: <input name= "password" type= "password"/><br/>
<!--Radio Box--
Gender: Male <input checked= "true" value= "man" name= "Sex" type= "Radio"/> Female <input name= "sex" value= "Woman" type= "Radio" /><br/>
<!--drop-down box--
Cities from: <select name= "City" >
<option value= "BJ" > Beijing </option>
<option value= "SH" > Shanghai </option>
<option value= "GZ" > Guangzhou </option>
<option value= "sz" > Shenzhen </option>
</select><br/>
<!--check box check boxes for the same group Name property values are consistent--
Hobbies: Java <input value= "java" name= "Hobit" checked= "Checked" type= "checkbox"/>javascript <input type= " CheckBox "value=" JavaScript "name=" Hobit "/>android <input value=" android "Name=" Hobit "type=" checkbox "/> <br/>
<!--file Upload box--
Head Photo: <input name= "image" type= "file"/><br/>
Personal Profile:
<!--text fields--
<textarea name= "Intro" rows= "Ten" cols= "></textarea><br/>"

<!--submit Button--
<input type= "Submit" value= "register"/>
<!--reset button--
<input type= "reset" value= "reset"/>

</form>

05.html Learning-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.