|
@@ -0,0 +1,54 @@
|
|
|
+<!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>
|
|
|
+
|
|
|
+ <!-- 表单标签 inpu tyep="text" 文本框 -->
|
|
|
+ <input type="text">
|
|
|
+ <!-- 密码框 -->
|
|
|
+ <input type="password">
|
|
|
+ <!-- 按钮 -->
|
|
|
+ <input type="button" value="按钮">
|
|
|
+ <button>按钮</button>
|
|
|
+ <!-- 单选框 -->
|
|
|
+ <input type="radio" name="sex">男
|
|
|
+ <input type="radio" name="sex">女
|
|
|
+ <!-- 复选框 -->
|
|
|
+ <input type="checkbox" name="hobby">篮球
|
|
|
+ <input type="checkbox" name="hobby">足球
|
|
|
+ <input type="checkbox" name="hobby">乒乓球
|
|
|
+ <!-- 下拉框 -->
|
|
|
+ <select multiple>
|
|
|
+ <option value="001">黑大</option>
|
|
|
+ <option value="002">黑工程</option>
|
|
|
+ <option value="">理工</option>
|
|
|
+ <option value="">华德</option>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!-- 文本域 -->
|
|
|
+ <textarea cols="20" rows="5"></textarea>
|
|
|
+
|
|
|
+ <!-- 文本上传 -->
|
|
|
+ <input type="file">
|
|
|
+ <br/>
|
|
|
+ <br/>
|
|
|
+ <br/>
|
|
|
+ <br/>
|
|
|
+ <br/>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!-- form 表单 -->
|
|
|
+ <!-- action 提交数据的服务器地址 method请求方式 -->
|
|
|
+ <form action="http://localhost:4000" method="get">
|
|
|
+ 用户名:<input type="text" name="username">
|
|
|
+ 密码:<input type="password" name="password">
|
|
|
+ <!-- submit 表示提交按钮 仅在form表单内生效 -->
|
|
|
+ <input type="submit" value="提交">
|
|
|
+ </form>
|
|
|
+</body>
|
|
|
+</html>
|