<body><a href ="#html"> HTML </a><h2 id ="html"> 超文本标记语言</h2></body>//到达某一位置<body><a href ="#html"> HTML </a><a name ="html"> 超文本标记语言</a></body>//可用于到达底部
<form>:表单的最外层容器
<input>展示控件
<form action =""><!-- action用于提交页面 --><h2>输入框:</h2><input type ="text" placeholder="请输入用户名"><h2>密码框:</h2><input type ="password" placeholder="请输入密码"><h2>复选框</h2><input type ="checkbox">苹果
<input type ="checkbox" checked>樱桃 提前选中
<input type ="checkbox" disabled>梨子 禁止使用
<input type ="checkbox">香蕉
<input type ="checkbox">葡萄
<h2> 单选框</h2><input type ="radio" name ="gender">男
<input type ="radio" name ="gender">女
<h2> 上传文件</h2><input type ="file"><h2> 提交按钮和重置按钮</h2><input type ="submit"><input type ="reset"></form>
<form action =""><h2>下拉菜单</h2><select><!--<option selected disabled> 请选择 </option>--><option> 北京</option><option selected> 上海</option><option> 杭州</option><option> 南阳</option></select><select size ="3"><!-- 一次可以显示多个 --><option> 北京</option><option selected> 上海</option><option> 杭州</option><option> 南阳</option></select><select multiple><!-- multiple可以多选 --><option> 北京</option><option selected> 上海</option><option> 杭州</option><option> 南阳</option></select><input type ="file" multiple><input type ="radio" name ="gender" id ="man"><label for="man">男</label><input type ="radio" name ="gender" id ="woman"><label for="woman">女</label><!-- label辅助标签 点击男或女也可以选中 --></form>
16.表单表格组合使用
<form action =""><table border ="1" cellpadding ="30"><tbody><tr align="center"><td rowspan ="4"> 总体信息 </td><td colspan="2">用户注册</td></tr><tr align="right"><td> 用户名:</td><td><input type ="text" placeholder="请输入用户名"></td></tr><tr align="right"><td> 密码:</td><td><input type =" password" placeholder="请输入密码"></td></tr><tr align="center"><td colspan="2"><input type ="submit"> <input type ="reset"></td></tr></tbody></table></form>