表单及表单控件
代码:
<html>
<head>
<title> 登录页面 </title>
</head>
<body>
<!--action的值应当是提交到哪个页面-->
<!--method方法制定提交数据的方式,常用的有两种 get、post-->
<form action="ok.html" method="post">
<!--name的值可以任意,但是不要使用关键字-->
用户名:<input type="text" name="username"/>
密 码 :<input type="password" name="password"/>
<input type="submit" value="登录系统"/>
<input type="reset" value="重新填写"/>
</form>
</body>
</html>
代码:
<html>
<head>
<title> 登录页面 </title>
</head>
<body>
<!--action的值应当是提交到哪个页面-->
<!--method方法制定提交数据的方式,常用的有两种 get、post-->
<form action="ok.html" method="post">
<!--name的值可以任意,但是不要使用关键字-->
用户名:<input type="text" name="username"/>
密 码 :<input type="password" name="password"/>
<input type="submit" value="登录系统"/>
<input type="reset" value="重新填写"/>
</form>
</body>
</html>