HTML密码框

  • 内容
  • 评论
  • 相关

网页中最典型的应用密码框的场景就是网站的登录注册页面。例如 C的登录(http://vip.biancheng.net/login.php)或者注册(http://vip.biancheng.net/register.php)页面中的密码字段使用的就是密码框。

在 HTML 中,把 <input> 标签的 type 属性设置为 password 可以表示密码框。具体语法格式如下:

<input type="password" />

接下来我们看一个具体的例子:

<form action="http://vip.biancheng.net/login.php" method="post" name="myForm">
       密码:<input type="password" name="psd">
</form>

运行效果如图所示:

密码框
图1:密码框

本文标题:HTML密码框

本文地址:https://www.hosteonscn.com/8067.html

评论

0条评论

发表评论

邮箱地址不会被公开。 必填项已用*标注