form表单
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>form</title>
</head>
<body>
<form action="img.html" method="get">
姓名:<input type="text" name="username"><br>
密码:<input type="password" name="password"><br>
<p>
性别:<input type="radio" value="男" name="sex">男
<input type="radio" value="女" name="sex">女
</p>
<p>
爱好:<input type="checkbox" value="chat" name="hoddy">聊天
<input type="checkbox" value="game" name="hoddy">游戏
<input type="checkbox" value="girl" name="hoddy">女孩
<input type="checkbox" value="code" name="hoddy">代码
</p>
<p>
国家:<select name="country">
<option>china</option>
<option selected>us</option>
<option>uk</option>
</select>
</p>
<p>
<input type="file" name="file">
<input type="button" value="上传文件" name="upload">
</p>
<p>
<!--邮箱验证-->
邮箱验证:<input type="email" name="email">
</p>
<p>
URL验证:<input type="url" name="url">
</p>
<p>
数字验证:<input type="number" max="10000">
</p>
<p>
滑动条:<input type="range" name="slide" min="0" max="100" step="2">
</p>
<p>
搜索:<input type="search" name="search">
</p>
<p>
<input type="submit" value="提交">
<input type="reset" value="重置">
</p>
</form>
</body>
</html>
![在这里插入图片描述](https://img-blog.csdnimg.cn/20210128180142902.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2hoaGhoYWE0NDQ=,size_16,color_FFFFFF,t_70#pic_center)