12345678910111213141516171819202122232425262728293031323334353637383940 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- </head>
- <body>
- <!-- 表单元素(表单标签) -->
- <!-- 文本输入框 -->
- <input type="text">
- <!-- 密码输入框 -->
- <input type="password">
- <!-- 单选框 会根据name属性值来分组 -->
- <input type="radio" name="gender">男
- <input type="radio" name="gender">女
- <!-- 复选框 会根据name属性值来分组 -->
- <input type="checkbox" name="hobby">篮球
- <input type="checkbox" name="hobby">足球
- <input type="checkbox" name="hobby">排球
- <!-- 下拉列表 -->
- <select>
- <option>黑龙江</option>
- <option>吉林</option>
- <option>辽宁</option>
- </select>
- <!-- 多行文本输入框 文本域 rows 代表输入的行数 cols 代表输入的列数 -->
- <textarea rows="6" cols="30"></textarea>
- <!-- 按钮 -->
- <input type="button" value="按钮">
- <button>按钮</button>
- <!-- 上传按钮 -->
- <input type="file">
- </body>
- </html>
|