<form> Label
Definitions and usage
<form> tags create a form for http://www.aliyun.com/zixun/aggregation/18678.html > user input.
The form element contains one or more form elements:
button
Input
Keygen
Object
Output
Select
TextArea
The form is used to pass user data to the server (the specified URL).
Instance
Footer for Document:
<form action= "form_action.asp" >
Name: <input type= "text" name= "fname" value= "Mickey"/><br/>
Last name:<input type= "text" name= "lname" value= "Mouse"/><br/>
<input type= "Submit" value= "Submit"/>
</form>
Try the code yourself:
<! DOCTYPE html>
<html>
<body>
<form action= "/html5/form_action.asp" >
Name: <input type= "text" name= "fname" value= "Mickey"/><br/>
Last name:<input type= "text" name= "lname" value= "Mouse"/><br/>
<input type= "Submit" value= "Submit"/>
</form>
<p> Wind Network (www.ithov.com) to remind you to click the "Submit" button, the input data will be sent to the server named "form_action.asp" page. </p>
</body>
</html>
Differences between HTML 4.01 and HTML 5
There are new properties in HTML 5, and some properties in HTML 4.01 are no longer supported.
Property
The
property value description is not supported in accept Mime_type HTML 5. CharSet a list of possible character sets charset_list form data (comma-delimited). The action URL defines where to send the data when the Submit button is clicked. AutoComplete on off to specify whether the form is automatically filled in. enctype See the MIME type used to encode the contents of the form. Methods get post put delete the HTTP method used to send data to the action URL. The default is get. Name Form_name defines a unique name for a form. Target _blank
_self
_parent
_top where to open the destination URL.
Description
Possible values for the Enctype property:
application/x-www-form-urlencoded
Multipart/form-data
FileType
AutoComplete property If set to on, the browser can store the form's input values and then automatically fill out the form when the user returns to the page.
If set to off, the browser should not store this information.
Standard properties
<form> tags support standard properties in HTML 5.
Event Properties
<form> tags support event properties in HTML 5.