1.form标签
form标签的属性:
action---跳转路径
method---用来明确表单的提交方式,分为get和post,默认值为get,get会把用户信息暴露在地址栏上,post相比更安全
表单元素:一般由input,textarea,select标签构成,在form标签内使用
2.input标签
type的取值:
text:文本框
password:密码框
radio:单选按钮
checkbox:多选按钮
submit:提交按钮
reset:复位按钮
button:普通按钮
image:图像按钮
file:文本域(上传文件的按钮)
hidden:隐藏域
email:邮箱
color:颜色域
date:日期
time:时间
datetime-local:日期时间
range:进度条
input的属性
checked:默认选择
readonly:只读,不能修改
disabled:禁用,不可点击
autofocus:默认光标位置
required:不能为空白提交
3.select标签
select:下拉列表框,一般和option标签连用
select属性:默认被选中的选项
multiple="multiple"属性:以列表的形式表现
4.textarea标签
用来实现文本域
cols="数字":多少列,表示文本域的宽度
rows="数字":多少行,表示文本域的高度