1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- </head>
- <body>
- <!-- 表单 -->
- <form action="xx">
- <!--文本框 type="text"-->
- 用户名:
- <input type="text"><br>
- <!-- 密码框 type=“password" -->
- 密码:
- <input type="password"><br>
- <!-- 单选框 type="radio" 单选需要有一个相同的name属性-->
- 性别:
- <input type="radio" name="sex">男
- <input type="radio" name="sex">女 <br>
- <!--复选框 type=checkbox 需要有一个相同的name属性 -->
- 爱好:
- <input type="checkbox" name="hobby">唱跳
- <input type="checkbox" name="hobby">篮球
- <input type="checkbox" name="hobby">敲代码 <br>
- <!-- 下拉列表 -->
- 学校:
- <select >
- <option value="">理工</option>
- <option value="">黑工程</option>
- <option value="">黑大</option>
- </select>
- <br>
- <!-- 文本域 -->
- 备注:
- <textarea cols="30" rows="10"></textarea><br>
- <!-- 按钮
- type="submit" 提交按钮 自动提交form表单
- button普通按钮
- -->
- <input type="submit">
- <input type="reset">
- <input type="button" value="确定">
- </form>
- <hr color="red">
-
- </body>
- </html>
|