html input 展示隐藏的密码

html 复制代码
<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<body>

<h2>登录表格</h2>

<form action="/action_page.php">
  <div class="container">
    <label for="uname"><b>用户名</b></label>
    <input type="text" placeholder="输入用户名" name="uname" required>

    <label for="psw"><b>密码</b></label>
    <input type="password" placeholder="输入密码" name="psw" required>

    <button type="submit">登录</button>
  </div>
</form>

</body>
</html>
相关推荐
ZC跨境爬虫39 分钟前
跟着 MDN 学 HTML day_35:(深入解析 CharacterData 抽象接口)
java·前端·ui·html·edge浏览器·媒体
ZC跨境爬虫2 小时前
跟着 MDN 学 HTML day_37:(深入掌握 CustomEvent 自定义事件接口)
前端·javascript·ui·html·音视频
anOnion11 小时前
构建无障碍组件之Table Pattern
前端·html·交互设计
编程技术手记11 小时前
Vite 开发环境前后端端口隔离:解决 index.html 冲突问题
前端·html
2301_8156453817 小时前
html.
前端·html
ZC跨境爬虫18 小时前
跟着 MDN 学 HTML day_33:(Attr 接口与属性节点的深入理解)
前端·javascript·ui·html·音视频·html5
不瘦80斤不改名20 小时前
HTML基础(一)
开发语言·前端·html
ZC跨境爬虫21 小时前
跟着 MDN 学 HTML day_32:(AbstractRange 抽象接口与 DOM 范围操作)
前端·javascript·ui·html·音视频
普修罗双战士1 天前
专业Markdown转HTML工具类:修复优化与Spring Boot适配
windows·spring boot·html
ZC跨境爬虫1 天前
跟着 MDN 学 HTML day_31:(AbortSignal 深入解析与高级中止模式)
前端·ui·html·音视频·视频编解码