<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>