Enter HTML5 entry to proficient:<form> label

Source: Internet
Author: User
Keywords tags HTML5 Getting started to master

<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.

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.