from 常用标签
表单
<form action="" method="post" name="表单域">
输入标签
<br>
<input name="1" type="button" value="按钮标签">
<br>
文本框
<input type="text" maxlength="4"><br>
密码框
<input type="password"><br>
单选框checked选中
男<input type="radio" name="sex" value="男" checked="checked">
女<input type="radio" name="sex" value="女">
<br>
复选框
爱好:mm<input type="checkbox" checked="checked">GG<input type="checkbox">
<br>
重置按钮清空输入
<input type="reset">
<br>
拾色器:
<input type="color">
<input type="date">
<br>
文件上传框
<input type="file">
<br>
数字框只能输入数字
<input type="number"><br>
滑动条
<input type="range"><br>
隐藏输入字段:
<input type="hidden">
<input type="submit" value="提交按钮">
</form>
label当鼠标点击用户名是就可以输入了 单选框靠近男就可以自动绑定 绑定焦点
<br>
<label for="dd" >用户名</label><input type="text" id="dd">
<br>
<select>
<option selected="selected">下拉列表框</option>
<option>233</option>
</select>
<br>
<textarea>
文本域
</textarea>