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>
相关推荐
anOnion27 分钟前
构建无障碍组件之Menu Button pattern
前端·html·交互设计
米丘14 小时前
微前端之 Web Components 完全指南
微服务·html
Metaphor6923 天前
使用 Python 将 PDF 转换为 HTML
python·pdf·html
a1117763 天前
“黑夜流星“个人引导页 网页html
java·前端·html
JieE2124 天前
手把手带你用纯 CSS 实现一个 3D 旋转魔方,这些前端基础你能打几分?
前端·css·html
YHL4 天前
🧊 CSS 3D 硬核解析:四个属性手写旋转立方体
前端·css·html
a1117764 天前
无限森林漫游(简约几何版 html
前端·html
LaughingZhu4 天前
Product Hunt 每日热榜 | 2026-06-16
前端·人工智能·经验分享·chatgpt·html
m0_547486664 天前
《HTML+CSS+JavaScript+Vue前端开发技术教程》全套PPT课件
javascript·css·html
fastjson_4 天前
Edge浏览器开启IE兼容模式
javascript·edge·html