002 表单

<!--

<form>
表单操作,下面的都在这里面操作
	action="网页" 需要提交的网页
	method="post" 提交方式,get是默认的
	action="hidden" 隐藏域,主要用来存放id信息
	
<input>
输入框
	type="text"  文本输入框,password密码输入框
	type="file"  文件框,会打开通用对话框
	type="radio" 单选框,只有在一组才能单选
	type="checkbox" 复选框
    type="submit"   注册按钮
	type="button"   普通按钮
	type="reset"    重置按钮
	type="number"   数字,如果输入了字母,点注册的时候会提示出错
	value="xxxx"    默认的数值,如果是按钮类型,则在按钮上显示文本
	name="username" 会随着submit一起提交,如果是get能在地址栏看到
	ID="ssss"      给输入项起一个名字,方便找到它
	type="date"    日期框
	placeholder="xxx" placeholder字面翻译是地方保持,相当于在文本框里嵌入背景文本,一般用作输入提示
<textarea>
一个文本区域
	cols 多少列,一行相当于多少个字符
	rows 多少行
	
<select>
选择下拉框

	option
	选择的内容
	
-->


<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
	
	<form>
	用户名: <input type="text"/><br/>
	密码: <input type="password"/><br/>
	确定密码: <input type="password"/><br/>
	邮箱: <input type="text"/><br/>
	手机: <input type="text"/><br/>
	头像: <input type="file"/><br/>
	性别: <input type="radio" name="sex"/>男
		  <input type="radio" name="sex"/>女<br/>
	爱好:  <input type="checkbox"/>抽烟
		   <input type="checkbox"/>喝酒
		   <input type="checkbox"/>烫头<br>
	要求: <textarea cols="40" rows="5"></textarea><br>
	
	地区: <select>
			<option>请选择</option>
			<option>湖北</option>			
			<option>火星</option>
		  </section><br/>
		  <input type="submit" /><br/>
	</form>	  
	</body>
</html>

猜你喜欢

转载自blog.csdn.net/yzj17025693/article/details/81156322
002