第一周复习一 ( HTML表单form)

form

  <from id="" name="" method="post/get" action=""></from>

注意点: id不可重复,name可重复。

 from种类

 1文本类

文本框 <input type="text" name="" id="" value="">

可以做账号框

密码框 <input type="password" name="" id="" value="">

内容不显示

文本域 <textarea name="" id="" value=""></textarea>

较大的文本用

  隐藏域 <input type="hidden" name="" id="" value="">

2按钮类

 提交按钮 <input type="submit" name="" id="" value="" disabled="disabled">  

 value后多为‘’提交‘’,

 重置按钮 <input type="reset" name="" id="" value="" disabled="disabled"> 

用于恢复默认设置

普通按钮 <input type="button" name="" id="" value="" disabled="disabled">

  图片按钮 <input type="image" name="" id="" value="" disabled="disabled">

3选择类

单选按钮组 

<input type="redio" name="" id="" value="" checked="checked"> 

checked是默认选项

  复选按钮 <input type="checkbox" name="" id="" value="" checked="checked>

4<frameset></frameset>框架标签

可用来分割浏览器,同时显示多个页面

用<frameset></frameset>替代<table></table>

属性:

rows="x,y,"是把浏览器分割成两行,高度分别为x、y

cols="x,y,"是把浏览器分割成两列,宽度分别为x、y

x、y也用百分比来表示

5<iframe></iframe>嵌入窗口标签

<iframe src="url" width="x" height="y" frameborder="0" scrolling="yes/no"></iframe>

是在页面嵌入一个小窗口来显示其他页面

原文地址:https://www.cnblogs.com/angangxiaofa/p/6710744.html