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