<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>表单</title>
</head>
<body>
<!-- input+tab -->
文本框<input type="text">
<!-- input:password -->
密码框<input type="password">
隐藏域
<!--input:hidden-->
<input type="hidden" >
图片
<!--input:image-->
<input type="image" src="1.jpeg" alt="">
input按钮
<!-- input:button -->
<input type="button" value="按钮">
<!-- input:radio -->
<!-- 单选框要想使用,需要指定相同的name属性值-->
单选框
男<input type="radio" name="sex">
女<input type="radio" name="sex">
<!-- input:checkbox -->
多选框(复选框)
<input type="checkbox" >
<input type="checkbox" >
<!-- input:file -->
上传
<input type="file" name="" id="">
图片
<img src="1.jpeg" width="200">
下拉列表
<select>
<option>中国</option>
<option>美国</option>
</select>
按钮
<button>我是一个按钮</button>
文本域
<textarea></textarea>
</body>
</html>
001表单
最新推荐文章于 2024-07-20 13:11:17 发布