第三章: 表单和框架

第三章: 表单和框架
单词:target  form method  action  checkbox  radio  textarea frameset  frame

1.
<form>
 <input type="text"/>文本框
 <input type="password"/>密码框
 <input type="radio" checked/>单选按钮 (name属性一定要相同,才能单选)
 <input type="checkbox"/>复选按钮
 <select>
  <option>一</option>
  <option>二</option>
  <option selected>默认选中此项</option>
  <option>四</option>
 </select>
 <textarea cols=6 rows=300>多行文本框,里面的内容开头时,要接着写,不要有空格,否则会影响格式</textarea>
 <input type="submit" value="提交"/>提交
 <input type="reset" value="清空"/>重置
 <input type="button" value="点播"/>普通按钮
</form>

2.
首先建frame页面,里面left.html里面含有超链接
<frameset cols="20%;*">
 <frame src="left.html" name="leftframe">
 <frame src="right.html" name="rightframe">
</frameset>

另外:左边链接页面
<html>
<body>
 <a href="buy.html" target="rightframe">点击链接页面 在右边的框架内显示</a>
 <a href="sale.html" target="rightframe">点击链接页面 在右边的框架内显示</a>
</body>
</html>

3. form提交方式有get和post.
<form method="get/post" action="url地址">
 <textarea>
  get提交方式不安全,数据量较小(默认的提交方式) 信息会在地址栏显示.
  post提交是打包 转为字节流提交,安全,大量数据提交.
 </textarea>
</form>

 

4.表单中,文件上传浏览 (文件域)

   <form>

       <input type="file" name="上传"/>

   </form>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值