The little details of the HTML

Source: Internet
Author: User

1, the Get post way to submit the different

Get: Data is placed at the back of the URL and used to connect
Cache information is kept on the client, not secure
Address bar can have limited data length, 2-4k, data size limit
Post: Data is submitted in an implicit manner
Do not preserve cache information
Unlimited data size
At the same time there are multiple request parameters, between the request parameters and Parameters &

2, input time inadvertently small details
Text password
Name if there is no Name attribute, then the value of this form field will not be submitted
If the form value is empty then the pwd= will still be committed, we will get an empty string in the background
You can set the default value by using the Value property
Radio
Grouped by name, the name attribute within a group must be the same
Submit value by default when submitting values instead of plain text
If the Value property is not set, the default commit on
The Checked property can be set to the default value if multiple, the last one takes effect
CheckBox
Also submit all the items you have selected
Fav=4&fav=on
If the Value property is not set then the on is committed, not recommended
Select
If there is no value attribute, then it will use his Text property
Selected setting default options
TextArea
Default values are written directly between labels
Reset
Return to default value
Image
Click the same as the submit effect

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.