
五、表单 <form></form> 表单域的开始/结束标签 <input type="text" name="firstName" size="" maxlength=""> 单行文本,控制输入长度 <input type="password"> 单行文本,密码区 <input type="checkbox"> 复选框 加checked属性,即被选中 <input type="radio" name="gender"> 单选框,几个radio button名字相同时,是一组,只能单选 <textarea cols="20" rows="5"></textarea> 多行文本域,注意:标签体就是其缺省值,所以一定不要在其间加空格或回行 <select> 下拉列表框 <option>beijing</option> <option>shanghai</option> </select> <input type="button" value="注册"> <input type="submit" value="提交"> <input type="reset" value="重置"> 以上3个按钮,放在form表单中,button要配合JavaScript使用来提交数据 submit按钮可以直接将页面的信息提交 一般标签都有value属性,即缺省值 都有name属性,有这个属性的才会被发送给服务器端 http://192.168.0.20:8080/html?name=Tony&gender=1 (?之后的是表单提交时发给服务器端的参数,用&连接)
form表单提交方式 用method=“”指定 get请求 提交表单的时候在地址栏显示的传参数 post请求 提交表单的时候不显示传参数 <a href="index.html"> 超链接
六、框架 <frameset cols="20%,80%"> <frameset rows="30%,70%"> <frame src="a.html" name="a"> <frame src="b.html" name="b"> </frameset> <frame src="c.html" name="c"> </frameset>
内嵌frame,可以嵌在某个单元格内显示一个已存在的网页 <iframe src="index.html">