In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "detailed interpretation of HTML form". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
I. form tags and attributes
Action: one of the properties of a form that indicates the program on the server that handles the form output
Method: one of the form properties that tells the browser how to send data to the service and specifies how to send data to the server, using post or get
Password:
1.png
2. The difference between GET method and POST method.
Get method:
GET requests can be cached
GET requests are kept in the browser history
GET requests can be collected as bookmarks
GET requests should not be used when processing sensitive data
GET request has a length limit
GET requests should only be used to retrieve data
POST method:
POST requests will not be cached
POST requests are not retained in the browser history
POST cannot be collected as a bookmark
There is no requirement for data length in POST request
III. Form elements
Name:
Mailbox:
Address:
Gender: male and female
Hobbies: basketball, badminton, football
Today's week: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
Password:
Confirm password:
The demonstration result of the above code is as follows:
2.png
(1) label
Type attribute: specifies the type of form element. Optional are text, password, checkbox, radio, submit, reset, file, hidden, image and button. Default is text.
Name attribute: specifies the name of the form element
Value attribute: optional, specify the initial value of the form element
Checked: specifies whether the button is selected
Size attribute: specifies the initial width of the form element
Maxlength attribute: specifies the maximum number of characters that can be entered in a text or password element
(2) three buttons
Reset button: reset button to reset the form to its original state
Button button: a normal button that needs to be associated with an event
Read-only and disable settings of the form
Readonly: read-only, data that the web server does not want users to modify, which is displayed in form elements
Disabled: disabled. Only when a certain condition is met can a feature be selected.
Disabled forms are not submitted.
This is the end of the content of "detailed explanation of HTML form". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.