html学习(二)

一、label 的作用,绑定其他控件,当点击label相当于点击了被绑定的控件;
<br/>
<label for="myname">姓名</label><input id="myname" type="text"/>
<label for="marry">婚否</lbel><input id="marry" type="checkbox"/>
<hr/>
二、fieldset 的作用,类似于delphi中的groupbox

<fieldset>
<legend>常用</legend>
<input type="text"/>
<input type="text"/>
<input type="text"/>
</fieldset>
<hr/>

三、登录窗体演示
<table border="1">
<tr><td><label for="username">用户名:</label></td><td><input id="username" type="text"></td></tr>
<tr><td><label for="pwd">密 码:</label></td><td><input id="pwd" type="password"></td></tr>
<tr><td><label for="yz">验证码:</label></td><td><input id="yz" type="text"></td></tr>
<tr><td><input type="button" value="登录"/></td><td><input type="reset"/></td></tr>
</table>

posted on 2014-11-28 23:23  lpq22221314  阅读(256)  评论(0编辑  收藏  举报

导航