<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
</head>
<body>
<form method="get" action="">
form是将前端的数据发送给后端
method表示发送数据的方式 action表示发生数据的给谁,填地址
<p>
username: <input type="text" name="username">
</p>
<p>
password: <input type="password" name="password">
</p>
<input type="submit" value="提交">
</form>
</body>
</html>
<input type="submit" >
则按钮使用默认值但可用value更改里面的内容。
数据应包括数据名与数据值。
username