form标签

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form action="127.0.0.1:8800/index" mmethod="post">
<p>学号:<input type="text" name="number"></p>
<p>密码:<input type="password" name="password"></p>
<p><input type="button" value="press"></p>
<p>爱好:basketball<input type="checkbox" name="hobby" value="1">
dance<input type="checkbox" name="hobby" value="2">
swimming<input type="checkbox" name="hobby" value="3">

</p>
<!--name属性是给服务器看的-->
<p>男<input type="radio" name="sex" value="101"></p>
<p>女<input type="radio" name="sex" value="102"></p>
<!--重置-->
<p><input type="reset"></p>
<!--上传文件-->
<p><input type="file"></p>

<p><input type="submit" value="提交"></p>

</form>

</body>
</html>


posted @ 2020-01-03 11:02  Stary_tx  阅读(144)  评论(0编辑  收藏  举报