HTML标签2

<form name="input" action="html_form_action.asp" method="get">
Username:
<input type="text" name="user" />

<input type="password" name="password">
<input type="submit" value="Submit" />
</form>

 

<input type="checkbox" name="Bike">

 

<input type="radio" checked="checked" name="Sex" value="male">

 

<select name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
</select>

 

<select name="cars">
<option value="fiat" selected="selected">Fiat</option>
<option value="audi">Audi</option>
</select>

 

分级下拉框

<select>
  <optgroup label="Swedish Cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
  </optgroup>
  <optgroup label="German Cars">
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
  </optgroup>
</select>

 

<textarea rows="10" cols="30">

 

<input type="button" value="Hello world!">

<input type="submit" value="Submit" />

 

//frame框

<fieldset>
<legend>健康信息:</legend>
<form>
<label>身高:<input type="text" /></label>
<label>体重:<input type="text" /></label>
</form>
</fieldset>

 

<img src="/i/eg_cute.gif" width="50" height="50">

 

<frameset cols="25%,75%">
  <frame src="page1.htm" noresize="noresize" >   //不可拖宽度
  <frame src="page2.htm">
</frameset>

<frameset rows="25%,50%,25%">

  <frame src="/example/html/frame_a.html">
  <frame src="/example/html/frame_b.html">
  <frame src="/example/html/frame_c.html">

</frameset>

假如一个框架有可见边框,用户可以拖动边框来改变它的大小。为了避免这种情况发生,可以在 <frame> 标签中加入:noresize="noresize"。

为不支持框架的浏览器添加 <noframes> 标签。

重要提示:不能将 <body></body> 标签与 <frameset></frameset> 标签同时使用!不过,假如你添加包含一段文本的 <noframes> 标签,就必须将这段文字嵌套于 <body></body> 标签内。(在下面的第一个实例中,可以查看它是如何实现的。)

<html>

<frameset cols="25%,50%,25%">
  <frame src="/example/html/frame_a.html">
  <frame src="/example/html/frame_b.html">
  <frame src="/example/html/frame_c.html">

<noframes>
<body>您的浏览器无法处理框架!</body>
</noframes>

</frameset>

</html>

 

内联框架 <iframe src="/i/eg_landscape.jpg"></iframe>

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值