1
2
3
4
5 <!DOCTYPE html>
6<html>
7<head>
8 <title>Toggle Password Visibility</title>
9 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
10 <link rel="stylesheet" href="css/style.css">
11</head>
12<body>
13 <div class="container">
14 <h1>Toggle Password Visibility</h1>
15 <input type="password" name="password" id="password" placeholder="Enter the password">
16 <i class="far fa-eye" id="togglePassword"></i>
17 </div>
18 <script src="js/app.js"></script>
19</body>
20</html>Code language: HTML, XML (xml)