表单初识
<doctype html>
<html>
<head>
<meta charset="utf-8">
<title>study</title>
<style>
</style>
</head>
<body>
<!-- action 提交的位置
method :get/post 提交的方式
get:可以在url上看见我们的信息,不安全
post:比较安全,传输大文件 -->
<!-- value="" 默认初始值
maxlength="" 最大能写几个字符
size 文本框长度 -->
<h1>注册</h1>
<form action="4-2-2.html" method="get">
<!-- input type="text" 文本框输入 -->
<P>名字<input type="text" name="username"></P>
<!-- input type="password" 密码框输入 -->
<p>密码<input type="password" name="pwd"></p>
<P>
<!-- submit 提交
reset 重置 -->
<input type="submit">
<input type="reset">
</P>
</form>
</body>
</html>

浙公网安备 33010602011771号