Use form labels to interact with users
How does a website interact with users? The answer is to use an HTML form (form). The form can transfer the data entered by the browser to the server side, so that the server-side program can process the data that the table only son over.
Grammar:
<form method= "transfer mode" action= "Server file" >
Explain:
1.<form>:<form> tag is in pairs, to <form> start, to </form> end.
2.Action : where the data entered by the browser is transmitted, such as a PHP page (save.php).
3.method : The way data is transmitted (Get/post).
<form method= "POST" action= "save.php"> <label for= "username" > User name: </label > <input type= "text" name= "username"/> <label for= "pass" > Password:</label> < Input type= "password" name= "pass"/></form>
Attention:
1. All form controls (text boxes, text fields, buttons, radio boxes, checkboxes, and so on) must be placed between the <form></form> tags (otherwise the user input information can not be submitted to the server Oh!). )。
2, Method:post/get the difference this part of the content belongs to the back-end programmer to consider the problem. Interested partners can view the wiki in this section, which is described in detail.
Practice:
html--using form labels to interact with users