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>
相关推荐
m0_528723813 小时前
HTML中,title和h1标签的区别是什么?
前端·html
Dark_programmer3 小时前
html - - - - - modal弹窗出现时,页面怎么能限制滚动
前端·html
烂蜻蜓5 小时前
Uniapp 设计思路全分享
前端·css·vue.js·uni-app·html
八角丶1 天前
元素尺寸的获取方式及区别
前端·javascript·html
Ama_tor1 天前
网页制作05-html,css,javascript初认识のhtml表格的创建
javascript·css·html
饼干饿死了1 天前
实现动态翻转时钟效果的 HTML、CSS 和 JavaScript,附源码
javascript·css·html
白嫖不白嫖1 天前
小游戏-记忆卡牌
css·html·css3
IT、木易1 天前
HTML5 新增的标签有哪些?
前端·html·html5
我是哈哈hh1 天前
【JavaScript进阶】作用域&解构&箭头函数
开发语言·前端·javascript·html
神明木佑1 天前
HTML 新手易犯的标签属性设置错误
前端·css·html