36 lines
886 B
HTML
36 lines
886 B
HTML
<!DOCTYPE html>
|
|
<html lang="en" data-bs-theme="dark">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
|
|
<title>Toggle Password Visibility</title>
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Toggle Password Visibility</h1>
|
|
<form>
|
|
<div>
|
|
<label for="username">Username</label>
|
|
<input type="text" name="username" id="username">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="password">Password</label>
|
|
<input type="password" name="password" id="password">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="show-password">
|
|
<input type="checkbox" name="show-passwords" id="show-password">
|
|
Show password
|
|
</label>
|
|
</div>
|
|
|
|
<p>
|
|
<button type="submit">Log In</button>
|
|
</p>
|
|
</form>
|
|
<script src="script.js"></script>
|
|
</body>
|
|
</html>
|