表单语法
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>表单</title>
</head>
<body>
<h1>注册</h1>
<!--表单
method:post和get是提交方式
action:表单提交的位置,可以是网站也可以是一个请求处理地址
get方式提交:可以在url看到提交的信息,不安全
post方式提交:比较安全,适合大文件
-->
<form action="html02.html" method="get">
<!--文本输入框
input type = "text"
-->
<p>账号:<input type="text" name="username"></p>
<!--密码输入框
input type = "password"
-->
<p>密码:<input type="password" name="password"></p>
<p>
<input type="submit">
<input type="reset">
</p>
</form>
</body>
</html>
表单元素格式
代码演示:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset