- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Title</title>
- </head>
- <body>
- <h1>登录注册</h1>
- <form action="第一个网页.html" method="post">
- <p>用户名: <input type="text" name="username"></p>
- <p>密码:<input type="password" name="pwd"></p>
- <p>
- <input type="submit">
- <input type="reset">
- </p>
-
- </form>
- </body>
- </html>
浏览器翻译如下:
输入账号密码之后,就会跳转到form表单中action指定的页面。如下: