HTML
表单结构
<form action="">
<input name="" type="">
<input type="">
</form>
表单控件:input
<input type="text">
<input type="password">
<input type="radio">
<input type="checkbox">
<input type="submit">
<input type="image">
<input type="button">
<input type="reset">
<input type="file">
<input type="hidden">
<textarea></textarea>
<select>
<optgroup>
<option> </option>
<option> </option>
</optgroup>
</select>
属性
action 数据提交地址
name 元素的名称
value 元素的值
size 规定输入字段的宽度
maxlength 规定输入字段的最大长度
placeholder 在输入字段为空时显示
required 规定必需在提交表单之前填写输入字段
readonly 只读
disabled 禁用
checked 设置默认选中
accept 设置上传的文件类型
selected 下拉列表多选