HTML基础:用表单写一个简易登陆页面

 1 <!DOCTYPE html>
 2 <html>
 3 <head>
 4 <meta charset="utf-8">
 5 <title>HTML基础:用表单编写登陆页面</title>
 6 </head>
 7 <body>
 8  <form action="#" method="get">
 9     <label>用户登陆</label><br><br>
10     <input type="text" placeholder="请输入用户名" name="username"><br><br>
11     <input type="password" placeholder="请输入密码" name="password"><br><br>
12     <input type="checkbox">记住我<br><br>
13     <button style="width:172px;height:23px;">登陆</button>
14  </form>
15 </body>
16 </html>

用浏览器打开以下html

相关文章
相关标签/搜索