一个不常用的HTML标签fieldset,其语法如下:

<fieldset>
<legend>fieldset名称</legend>
<!-- 加入你的内容 -->
</fieldset>

下面是一个代码示例:

<center>
<fieldset style="width:300px">
<legend>用户登陆</legend>
<form name="login" method="post">
帐号:<input name="UserName"></input>
<br><br>
密码:<input type="password" name="UserPassword"></input>
<br><br>
<input type="submit" value="登陆" name="Submit"></input>
&nbsp;&nbsp;
<input type="reset" value="重填" name="Reset"></input>
</form>
</fieldset>
</center>

代码的实际效果如下:

 

用户登陆
帐号:

密码:

  

posted on 2007-07-25 17:44 sanni 阅读(172) 评论(0)  编辑 收藏 引用
只有注册用户登录后才能发表评论。