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>
相关推荐
前端老鹰13 小时前
HTML <output> 标签:原生表单结果展示容器,自动关联输入值
前端·html
芦苇Z16 小时前
HTML <a> 标签的 rel 属性全解析:安全、隐私与 SEO 最佳实践
前端·html
Alice-YUE19 小时前
【CSS学习笔记3】css特性
前端·css·笔记·html
破无差1 天前
《赛事报名系统小程序》
小程序·html·uniapp
从零开始学习人工智能1 天前
快速搭建B/S架构HTML演示页:从工具选择到实战落地
前端·架构·html
yddddddy1 天前
html基本知识
前端·html
小白64022 天前
前端梳理体系从常问问题去完善-基础篇(html,css,js,ts)
前端·css·html
蓝胖子的多啦A梦2 天前
【前端】VUE+Element UI项目 页面自适应横屏、竖屏、大屏、PDA及手机等适配方案
前端·javascript·elementui·html·前端页面适配
面向星辰2 天前
html各种常用标签
前端·javascript·html
李昊哲小课3 天前
HTML 完整教程与实践
前端·html