-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
31 lines (31 loc) · 1.04 KB
/
index.html
File metadata and controls
31 lines (31 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Page</title>
<style>
body { font-family: Arial, sans-serif; }
.login-container { max-width: 400px; margin: auto; }
input { margin: 10px 0; width: 100%; padding: 10px; }
button { width: 100%; padding: 10px; }
</style>
</head>
<body>
<div class="login-container">
<h2>Login</h2>
<input type="text" placeholder="Usernames" id="username" required>
<input type="password" placeholder="Password" id="password" required>
<button onclick="login()">Submit</button>
<p id="message"></p>
</div>
<script>
function login() {
const username = document.getElementById('username').value;
const password = document.getElementById('password').value;
document.getElementById('message').innerText = `Logged in as: ${username}`;
}
</script>
</body>
</html>