Look at the following examples:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<!--
<form action="C:\Users\Administrator\Desktop\0528day02\09.html" method="post">
用户名:<input type="text" name="username"/><br />
密码名:<input type="password" name="userpwd"/><br />
<!--提交-->
<input type="submit"/ >
<input type="reset" />
</form>
</body>
</html>
operation result:
Wherein:
the communication between the front and rear ends
1.form submission
2.ajax submission
->
<- Core Label:! Functions only submitted, without any pattern ->
<- form!
Properties:
Action address submitted by the end of the address of the service is usually, if not written, the default page to submit
way method of submission. get / post if you do not write, submit to get
the difference and get the post.
->
<-!
Input, Button tag is a row within the block
input is the core of the label form to change the style of presentation by modifying the type attribute of the input tag ->